diff --git a/.golangci.next.reference.yml b/.golangci.next.reference.yml index 9779fd04556d..5722b7b0ac80 100644 --- a/.golangci.next.reference.yml +++ b/.golangci.next.reference.yml @@ -1801,6 +1801,8 @@ linters-settings: - sortslice # Check signature of methods of well-known interfaces. - stdmethods + # Check for uses of too-new standard library symbols. + - stdversion # Check for string(int) conversions. - stringintconv # Check that struct field tags conform to reflect.StructTag.Get. diff --git a/jsonschema/golangci.next.jsonschema.json b/jsonschema/golangci.next.jsonschema.json index 50d694ec31cd..b3a5453dd455 100644 --- a/jsonschema/golangci.next.jsonschema.json +++ b/jsonschema/golangci.next.jsonschema.json @@ -200,6 +200,7 @@ "slog", "sortslice", "stdmethods", + "stdversion", "stringintconv", "structtag", "testinggoroutine", diff --git a/pkg/golinters/govet/govet.go b/pkg/golinters/govet/govet.go index eb63a5d3342c..451a055ebe1b 100644 --- a/pkg/golinters/govet/govet.go +++ b/pkg/golinters/govet/govet.go @@ -40,6 +40,7 @@ import ( "golang.org/x/tools/go/analysis/passes/slog" "golang.org/x/tools/go/analysis/passes/sortslice" "golang.org/x/tools/go/analysis/passes/stdmethods" + "golang.org/x/tools/go/analysis/passes/stdversion" "golang.org/x/tools/go/analysis/passes/stringintconv" "golang.org/x/tools/go/analysis/passes/structtag" "golang.org/x/tools/go/analysis/passes/testinggoroutine" @@ -89,6 +90,7 @@ var ( slog.Analyzer, sortslice.Analyzer, stdmethods.Analyzer, + stdversion.Analyzer, stringintconv.Analyzer, structtag.Analyzer, testinggoroutine.Analyzer,