@@ -1074,40 +1074,6 @@ linters-settings:
1074
1074
- Katakana
1075
1075
1076
1076
govet :
1077
- # Report about shadowed variables.
1078
- # Default: false
1079
- check-shadowing : true
1080
-
1081
- # Settings per analyzer.
1082
- settings :
1083
- # Analyzer name, run `go tool vet help` to see all analyzers.
1084
- printf :
1085
- # Comma-separated list of print function names to check (in addition to default, see `go tool vet help printf`).
1086
- # Default: []
1087
- funcs :
1088
- - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
1089
- - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
1090
- - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
1091
- - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
1092
- shadow :
1093
- # Whether to be strict about shadowing; can be noisy.
1094
- # Default: false
1095
- strict : true
1096
- unusedresult :
1097
- # Comma-separated list of functions whose results must be used
1098
- # (in addition to default:
1099
- # context.WithCancel, context.WithDeadline, context.WithTimeout, context.WithValue, errors.New, fmt.Errorf,
1100
- # fmt.Sprint, fmt.Sprintf, sort.Reverse
1101
- # ).
1102
- # Default: []
1103
- funcs :
1104
- - pkg.MyFunc
1105
- # Comma-separated list of names of methods of type func() string whose results must be used
1106
- # (in addition to default Error,String)
1107
- # Default: []
1108
- stringmethods :
1109
- - MyMethod
1110
-
1111
1077
# Disable all analyzers.
1112
1078
# Default: false
1113
1079
disable-all : true
@@ -1214,6 +1180,36 @@ linters-settings:
1214
1180
- unusedresult
1215
1181
- unusedwrite
1216
1182
1183
+ # Settings per analyzer.
1184
+ settings :
1185
+ # Analyzer name, run `go tool vet help` to see all analyzers.
1186
+ printf :
1187
+ # Comma-separated list of print function names to check (in addition to default, see `go tool vet help printf`).
1188
+ # Default: []
1189
+ funcs :
1190
+ - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
1191
+ - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
1192
+ - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
1193
+ - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
1194
+ shadow :
1195
+ # Whether to be strict about shadowing; can be noisy.
1196
+ # Default: false
1197
+ strict : true
1198
+ unusedresult :
1199
+ # Comma-separated list of functions whose results must be used
1200
+ # (in addition to default:
1201
+ # context.WithCancel, context.WithDeadline, context.WithTimeout, context.WithValue, errors.New, fmt.Errorf,
1202
+ # fmt.Sprint, fmt.Sprintf, sort.Reverse
1203
+ # ).
1204
+ # Default: []
1205
+ funcs :
1206
+ - pkg.MyFunc
1207
+ # Comma-separated list of names of methods of type func() string whose results must be used
1208
+ # (in addition to default Error,String)
1209
+ # Default: []
1210
+ stringmethods :
1211
+ - MyMethod
1212
+
1217
1213
grouper :
1218
1214
# Require the use of a single global 'const' declaration only.
1219
1215
# Default: false
0 commit comments