Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(lint): use revive instead of golint #1801

Merged

Conversation

minamijoyo
Copy link
Contributor

The golint was officially deprecated.
golang/go#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

The golint was officially deprecated.
golang/go#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
@minamijoyo minamijoyo requested a review from a team as a code owner September 9, 2021 01:45
@minamijoyo minamijoyo changed the title Use revive instead of golint [WIP] Use revive instead of golint Sep 9, 2021
@nishkrishnan
Copy link
Contributor

Thanks for contributing! mind fixing the linting errors as well?

@nishkrishnan nishkrishnan added build Relating to how we build Atlantis dependencies PRs that update a dependency file labels Sep 9, 2021
@minamijoyo
Copy link
Contributor Author

minamijoyo commented Sep 10, 2021

The revive is almost the same as golint, but there seems to be a bit different results. It was not for free 😇
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

I fixed some lint errors reported by revive.

@minamijoyo minamijoyo changed the title [WIP] Use revive instead of golint Use revive instead of golint Sep 10, 2021
Copy link
Member

@chenrui333 chenrui333 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@chenrui333 chenrui333 changed the title Use revive instead of golint build(lint): use revive instead of golint Sep 10, 2021
@nishkrishnan nishkrishnan merged commit 4b6c2f6 into runatlantis:master Sep 10, 2021
krrrr38 pushed a commit to krrrr38/atlantis that referenced this pull request Dec 16, 2022
* Use revive instead of golint

The golint was officially deprecated.
golang/go#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Relating to how we build Atlantis dependencies PRs that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants