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

Replace golint to revive #2315

Merged
merged 2 commits into from
May 24, 2021
Merged

Replace golint to revive #2315

merged 2 commits into from
May 24, 2021

Conversation

hiyosi
Copy link
Contributor

@hiyosi hiyosi commented May 21, 2021

Signed-off-by: Tomoya Usami tousami@zlab.co.jp

Pull Request check list

  • Commit conforms to CONTRIBUTING.md?
  • Proper tests/regressions included?
  • Documentation updated?

Affected functionality

linters

Description of change

Use revive instead of golint
Since golint has been deprecated(the golint repository has already been archived), I think it is better to replace.
revive is mentioned by the golangci-lint doc.

https://golangci-lint.run/usage/linters/

What do you think about this code style? Is it acceptable?

Which issue this PR fixes

#2198
@MarcosDY may also be working on same as this. Please comment if you have any concerns.

Signed-off-by: Tomoya Usami <tousami@zlab.co.jp>
@MarcosDY
Copy link
Collaborator

Looks like it is deprecated from 1.41, do you tried to upgrade golanglint to that version?

# minimal confidence for issues, default is 0.8
min-confidence: 0.0
confidence: 0.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

may we add ignoreGeneratedHeader = true?

@hiyosi
Copy link
Contributor Author

hiyosi commented May 21, 2021

Looks like it is deprecated from 1.41, do you tried to upgrade golanglint to that version?

oh, you are right.

Once I tried to upgrade the version, I find that there is a bug.
golangci/golangci-lint#2005

I guess it's better to wait for the bug to be fixed.

Copy link
Member

@azdagron azdagron left a comment

Choose a reason for hiding this comment

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

Thanks, @hiyosi !

@azdagron azdagron merged commit 53e26a7 into spiffe:main May 24, 2021
@hiyosi hiyosi deleted the use-revive branch May 24, 2021 22:58
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.

3 participants