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

fix: Bump golangci-lint version and fix some linter's problems #1837

Merged

Conversation

nabokihms
Copy link
Member

@nabokihms nabokihms commented Oct 17, 2020

There is a naughty warning in the "Run linter" CI job logs:

[runner] Can't run linter goanalysis_metalinter: ST1001: failed prerequisites:...

Examples: 1, 2, 3

Bumping the golangci-lint version to the actual one fixes the problem. It requires golangci-linter configuration changes because the enable-all option was marked as deprecated. Users have to use the disable-all option and manually enable linters they want.

I also fixed some style problems to enable the following linters:

  • golint
  • gochecknoinits
  • gocritic
  • ineffassign
  • nakedret
  • staticcheck
  • varcheck

Think it might be a useful improvement.

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
Copy link
Member

@sagikazarmark sagikazarmark left a comment

Choose a reason for hiding this comment

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

Thanks @nabokihms

@sagikazarmark sagikazarmark added this to the v2.26.0 milestone Oct 18, 2020
@sagikazarmark sagikazarmark merged commit c82d21b into dexidp:master Oct 18, 2020
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.

None yet

2 participants