CI: update staticcheck version (#3533)

Update staticcheck version and re-enable TestStaticcheck on Go 1.22.
This commit is contained in:
Alessandro Arzilli 2023-10-20 19:05:58 +02:00 committed by GitHub
parent 909add7894
commit 90a1571f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

@ -50,7 +50,7 @@ export GOPATH
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
go version
if [ "$arch" != "ppc64le" ]; then
go install honnef.co/go/tools/cmd/staticcheck@2023.1 || true
go install honnef.co/go/tools/cmd/staticcheck@2023.1.6 || true
fi
uname -a

@ -1310,9 +1310,6 @@ func TestStaticcheck(t *testing.T) {
if err != nil {
t.Skip("staticcheck not installed")
}
if goversion.VersionAfterOrEqual(runtime.Version(), 1, 22) {
t.Skip("broken with staticcheck@2023.1")
}
// default checks minus SA1019 which complains about deprecated identifiers, which change between versions of Go.
args := []string{"-tests=false", "-checks=all,-SA1019,-ST1000,-ST1003,-ST1016,-S1021,-ST1023", "github.com/go-delve/delve/..."}
// * SA1019 is disabled because new deprecations get added on every version