Autoreview your Go PRs using reviewdog and golangci-lint!
Problem?
Detect simple problems problem with Go code within a PR.
Solution?
golangci-lint
+ reviewdog
+ Github Actions
golangci-lint
- aggregates many open source linters into one linting program.
reviewdog
- a glue to connect linter output with Github Actions via:
- checks
- PR comments
- PR annotations
Github Actions - run those two above for each PR
How?
Like this:
How it looks like?
Reference
golangci-lint
repo - https://github.com/golangci/golangci-lintgolangci-lint
available linters - https://golangci-lint.run/usage/linters/reviewdog
repo - https://github.com/reviewdog/reviewdogreviewdog
golangci-lint
action - https://github.com/reviewdog/action-golangci-lint