Skip to content

Commit

Permalink
govet: add stdversion analyzer (#5160)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored Nov 27, 2024
1 parent b7b77ca commit a09d370
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .golangci.next.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions jsonschema/golangci.next.jsonschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
"slog",
"sortslice",
"stdmethods",
"stdversion",
"stringintconv",
"structtag",
"testinggoroutine",
Expand Down
2 changes: 2 additions & 0 deletions pkg/golinters/govet/govet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -89,6 +90,7 @@ var (
slog.Analyzer,
sortslice.Analyzer,
stdmethods.Analyzer,
stdversion.Analyzer,
stringintconv.Analyzer,
structtag.Analyzer,
testinggoroutine.Analyzer,
Expand Down

0 comments on commit a09d370

Please sign in to comment.