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

lint: remove Golint #91534

Merged
merged 1 commit into from
Nov 10, 2022
Merged

lint: remove Golint #91534

merged 1 commit into from
Nov 10, 2022

Conversation

yuzefovich
Copy link
Member

This commit removes TestGolint linter as well as all mentions of golint I could find. The rationale is that

  • the linter is no longer maintained
  • is partially duplicated with the staticcheck
  • due to a recent change in gcexportdata.Find, if we bump some dependencies, it takes on the order of an hour when run via bazel, and we'd need to fork golint to go around that.

Epic: None

Release note: None

@yuzefovich yuzefovich requested review from srosenberg, renatolabs and a team November 8, 2022 18:38
@yuzefovich yuzefovich requested a review from a team as a code owner November 8, 2022 18:38
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@yuzefovich
Copy link
Member Author

Some discussion here.

@yuzefovich yuzefovich force-pushed the remove-golint branch 2 times, most recently from 7e182ad to 906fa89 Compare November 8, 2022 19:03
Copy link
Member

@srosenberg srosenberg left a comment

Choose a reason for hiding this comment

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

Good riddance! :)

@srosenberg srosenberg requested a review from knz November 9, 2022 15:55
Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

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

nice

@yuzefovich
Copy link
Member Author

Looks like no one is relying on golint according to the poll, so let's proceed with this PR.

TFTRs!

bors r+

@yuzefovich
Copy link
Member Author

I think there is a merge conflict with an in-flight #91616, so I'll let that change go in first.

bors r-

@craig
Copy link
Contributor

craig bot commented Nov 9, 2022

Canceled.

This commit removes `TestGolint` linter as well as all mentions of
`golint` I could find. The rationale is that
- the linter is no longer maintained
- is partially duplicated with the `staticcheck`
- due to a recent change in `gcexportdata.Find`, if we bump some
dependencies, it takes on the order of an hour when run via bazel, and
we'd need to fork `golint` to go around that.

Epic: None

Release note: None
@yuzefovich
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented Nov 10, 2022

Build succeeded:

@craig craig bot merged commit f87728f into cockroachdb:master Nov 10, 2022
@yuzefovich yuzefovich deleted the remove-golint branch November 10, 2022 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants