Masayuki Morita
|
4b6c2f65da
|
build(lint): use revive instead of golint (#1801)
* Use revive instead of golint
The golint was officially deprecated.
https://github.com/golang/go/issues/38968
We have been using golint via golangci-lint and golangci-lint now
recommends using revive instead of golint.
https://golangci-lint.run/usage/linters/
> golint: The repository of the linter has been archived by the owner.
> Replaced by revive.
The revive is a drop-in replacement of golint. I think switching to
revive is a reasonable choice to check the same rules for free.
https://github.com/mgechev/revive
* Fix lint errors reported by revive
The revive is almost the same as golint, but there seems to be a bit
different results.
https://app.circleci.com/pipelines/github/runatlantis/atlantis/1519/workflows/75fd7da5-1532-4ed7-ac8a-4884902818a4/jobs/8314
https://github.com/runatlantis/atlantis/runs/3565887247?check_suite_focus=true
|
2021-09-10 09:14:56 -07:00 |
|