File tree Expand file tree Collapse file tree 5 files changed +8
-0
lines changed Expand file tree Collapse file tree 5 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1801,6 +1801,8 @@ linters-settings:
1801
1801
- sortslice
1802
1802
# Check signature of methods of well-known interfaces.
1803
1803
- stdmethods
1804
+ # Check for uses of too-new standard library symbols.
1805
+ - stdversion
1804
1806
# Check for string(int) conversions.
1805
1807
- stringintconv
1806
1808
# Check that struct field tags conform to reflect.StructTag.Get.
Original file line number Diff line number Diff line change @@ -1801,6 +1801,8 @@ linters-settings:
1801
1801
- sortslice
1802
1802
# Check signature of methods of well-known interfaces.
1803
1803
- stdmethods
1804
+ # Check for uses of too-new standard library symbols.
1805
+ - stdversion
1804
1806
# Check for string(int) conversions.
1805
1807
- stringintconv
1806
1808
# Check that struct field tags conform to reflect.StructTag.Get.
Original file line number Diff line number Diff line change 200
200
" slog" ,
201
201
" sortslice" ,
202
202
" stdmethods" ,
203
+ " stdversion" ,
203
204
" stringintconv" ,
204
205
" structtag" ,
205
206
" testinggoroutine" ,
Original file line number Diff line number Diff line change 200
200
" slog" ,
201
201
" sortslice" ,
202
202
" stdmethods" ,
203
+ " stdversion" ,
203
204
" stringintconv" ,
204
205
" structtag" ,
205
206
" testinggoroutine" ,
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ import (
40
40
"golang.org/x/tools/go/analysis/passes/slog"
41
41
"golang.org/x/tools/go/analysis/passes/sortslice"
42
42
"golang.org/x/tools/go/analysis/passes/stdmethods"
43
+ "golang.org/x/tools/go/analysis/passes/stdversion"
43
44
"golang.org/x/tools/go/analysis/passes/stringintconv"
44
45
"golang.org/x/tools/go/analysis/passes/structtag"
45
46
"golang.org/x/tools/go/analysis/passes/testinggoroutine"
89
90
slog .Analyzer ,
90
91
sortslice .Analyzer ,
91
92
stdmethods .Analyzer ,
93
+ stdversion .Analyzer ,
92
94
stringintconv .Analyzer ,
93
95
structtag .Analyzer ,
94
96
testinggoroutine .Analyzer ,
You can’t perform that action at this time.
0 commit comments