reviewdog/Run golangci-lint with reviewdog
🐶 Run golangci-lint with reviewdog on pull requests to improve code review experience.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | GITHUB_TOKEN. | yes | ${{ github.token }} |
| golangci_lint_flags | golangci-lint flags. (golangci-lint run --out-format=line-number <golangci_lint_flags>) | no | "" |
| tool_name | Tool name to use for reviewdog reporter | no | golangci |
| level | Report level for reviewdog [info,warning,error] | no | error |
| reporter | Reporter of reviewdog command [github-pr-check,github-pr-review,github-check]. | no | github-pr-check |
| filter_mode | Filtering for the reviewdog command [added,diff_context,file,nofilter]. Default is added. | no | added |
| fail_level | If set to `none`, always use exit code 0 for reviewdog. Otherwise, exit code 1 for reviewdog if it finds at least 1 issue with severity greater than or equal to the given level. Possible values: [none,any,info,warning,error] Default is `none`. | — | none |
| fail_on_error | Deprecated, use `fail_level` instead. Exit code for reviewdog when errors are found [true,false] Default is `false`. | no | false |
| reviewdog_flags | Additional reviewdog flags | no | "" |
| workdir | Working directory relative to the root directory. | no | . |
| reviewdog_version | the version of reviewdog | no | latest |
| golangci_lint_version | the version of golangci-lint | no | latest |
| go_version | the version of Go. By default, the latest version of Go 1.x is installed. | no | — |
| go_version_file | Path to the go.mod file or the file containing only Go version. | no | — |
| cache | enable cache | no | true |
Outputs
no outputs