Skip to content

Conversation

@ldez
Copy link
Member

@ldez ldez commented Feb 21, 2021

@ldez ldez added the linter: update version Update version of linter label Feb 21, 2021
@ldez ldez force-pushed the feat/update-static-check branch from ffa93a2 to 1f4dbc1 Compare February 21, 2021 01:42
@ldez
Copy link
Member Author

ldez commented Feb 21, 2021

run golangci-lint
  Running [/home/runner/golangci-lint-1.37.1-linux-amd64/golangci-lint run --out-format=github-actions] in [] ...
  Error: directive `//nolint:staticcheck // require changes in github.com/OpenPeeDeeP/depguard` is unused for linter staticcheck (nolintlint)
  Error: directive `//nolint:staticcheck // it's an adapter for golang.org/x/tools/go/packages` is unused for linter staticcheck (nolintlint)
  
  Error: issues found
  Ran golangci-lint in 9552ms

There is an issue because the new version has some rules that cannot be handle by the old version.

@ldez
Copy link
Member Author

ldez commented Feb 21, 2021

I add some exclude-rules to fix the problem

@SVilgelm
Copy link
Member

@ldez please rebase the PR

@ldez ldez force-pushed the feat/update-static-check branch from 4040b48 to 868574a Compare February 21, 2021 14:01
Copy link
Member

@SVilgelm SVilgelm left a comment

Choose a reason for hiding this comment

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

TODO can be removed in next release

@ldez ldez merged commit 2e7c389 into golangci:master Feb 21, 2021
@ldez ldez deleted the feat/update-static-check branch February 21, 2021 15:27
This was referenced Mar 7, 2021
@ldez ldez added this to the v1.38 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

linter: update version Update version of linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

goanalysis_metalinter: SA9002: runtime error: index out of range [2] with length 1 Update staticcheck to v0.1.0 (2020.2)

2 participants