@@ -1044,21 +1044,29 @@ linters-settings:
1044
1044
strict : true
1045
1045
unusedresult :
1046
1046
# Comma-separated list of functions whose results must be used
1047
- # (in addition to defaults context.WithCancel,context.WithDeadline,context.WithTimeout,context.WithValue,
1048
- # errors.New,fmt.Errorf,fmt.Sprint,fmt.Sprintf,sort.Reverse)
1049
- # Default []
1047
+ # (in addition to default:
1048
+ # context.WithCancel, context.WithDeadline, context.WithTimeout, context.WithValue, errors.New, fmt.Errorf,
1049
+ # fmt.Sprint, fmt.Sprintf, sort.Reverse
1050
+ # ).
1051
+ # Default: []
1050
1052
funcs :
1051
1053
- pkg.MyFunc
1052
1054
# Comma-separated list of names of methods of type func() string whose results must be used
1053
1055
# (in addition to default Error,String)
1054
- # Default []
1056
+ # Default: []
1055
1057
stringmethods :
1056
1058
- MyMethod
1057
1059
1058
1060
# Disable all analyzers.
1059
1061
# Default: false
1060
1062
disable-all : true
1061
- # Enable analyzers by name (in addition to default).
1063
+ # Enable analyzers by name.
1064
+ # (in addition to default:
1065
+ # appends, asmdecl, assign, atomic, bools, buildtag, cgocall, composites, copylocks, defers, directive, errorsas,
1066
+ # framepointer, httpresponse, ifaceassert, loopclosure, lostcancel, nilfunc, printf, shift, sigchanyzer, slog,
1067
+ # stdmethods, stringintconv, structtag, testinggoroutine, tests, timeformat, unmarshal, unreachable, unsafeptr,
1068
+ # unusedresult
1069
+ # ).
1062
1070
# Run `go tool vet help` to see all analyzers.
1063
1071
# Default: []
1064
1072
enable :
@@ -1107,6 +1115,10 @@ linters-settings:
1107
1115
# Default: false
1108
1116
enable-all : true
1109
1117
# Disable analyzers by name.
1118
+ # (in addition to default
1119
+ # atomicalign, deepequalerrors, fieldalignment, findcall, nilness, reflectvaluecompare, shadow, sortslice,
1120
+ # timeformat, unusedwrite
1121
+ # ).
1110
1122
# Run `go tool vet help` to see all analyzers.
1111
1123
# Default: []
1112
1124
disable :
@@ -1275,6 +1287,7 @@ linters-settings:
1275
1287
- k8s.io/klog/v2.InfoS # package level exported functions
1276
1288
- (github.com/go-logr/logr.Logger).Error # "Methods"
1277
1289
- (*go.uber.org/zap.SugaredLogger).With # Also "Methods", but with a pointer receiver
1290
+
1278
1291
maintidx :
1279
1292
# Show functions with maintainability index lower than N.
1280
1293
# A high index indicates better maintainability (it's kind of the opposite of complexity).
0 commit comments