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

Refactor: change golint to revive in styleguide.md #124

Closed
wants to merge 1 commit into from
Closed

Refactor: change golint to revive in styleguide.md #124

wants to merge 1 commit into from

Conversation

gvencadze
Copy link

golint is deprecated and recommends switch to revive

@CLAassistant
Copy link

CLAassistant commented May 15, 2021

CLA assistant check
All committers have signed the CLA.

@prashantv
Copy link
Contributor

I wasn't able to find any recommendations on the golint README to switch to revive, can you point to where this is recommended? The only recommendation I was able to find is:

NOTE: Golint is deprecated and frozen. There's no drop-in replacement for it, but tools such as Staticcheck and go vet should be used instead.

@gvencadze
Copy link
Author

Recommendation was showed in log of running golint in github CI. Or better I should just add link to revive (instead of removing) and write that golint is deprecated?

level=warning msg="[runner] The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner. Replaced by revive."

@mway
Copy link
Contributor

mway commented May 16, 2021

We haven't evaluated revive internally yet (to my knowledge, anyway), though we're aware of it and on paper it does look promising.

We don't recommend things that we don't do/use ourselves, so I'd prefer to wait on mentioning/recommending revive until we've had a chance to look into/adopt it internally first. I'll start a conversation internally about this, and we can leave the PR open in the meantime. (Note that whenever we do make this change, it should also include #123.)

@conrad760
Copy link

lurking, was a consensus ever drawn from this?
How do you enforce your style guides internally?

@abhinav
Copy link
Collaborator

abhinav commented Apr 7, 2023

FWIW, I've switched from golint to revive in some of my personal projects.
It's almost a drop-in replacement minus:

  • it does not exit with a non-zero status code by default if there are issues
  • the default rule set as of revive 1.3.0 does a bit more than golint, and we might not agree with all of those rules

If this style guide recommends revive, we should provide a sample recommended configuration.

@gvencadze gvencadze closed this by deleting the head repository Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

6 participants