@@ -2121,42 +2121,46 @@ linters:
21212121 # List of analyzers to disable.
21222122 # By default, all analyzers are enabled.
21232123 disable :
2124- # Replace interface{} with any.
2125- - any
2126- # Replace for-range over b.N with b.Loop.
2127- - bloop
2128- # Replace []byte(fmt.Sprintf) with fmt.Appendf.
2129- - fmtappendf
2130- # Remove redundant re-declaration of loop variables.
2131- - forvar
2132- # Replace explicit loops over maps with calls to maps package.
2133- - mapsloop
2134- # Replace if/else statements with calls to min or max.
2135- - minmax
2136- # Simplify code by using go1.26's new(expr).
2137- - newexpr
2138- # Suggest replacing omitempty with omitzero for struct fields.
2139- - omitzero
2140- # Replace 3-clause for loops with for-range over integers.
2141- - rangeint
2142- # Replace reflect.TypeOf(x) with TypeFor[T]().
2143- - reflecttypefor
2144- # Replace loops with slices.Contains or slices.ContainsFunc.
2145- - slicescontains
2146- # Replace sort.Slice with slices.Sort for basic types.
2147- - slicessort
2148- # Use iterators instead of Len/At-style APIs.
2149- - stditerators
2150- # Replace HasPrefix/TrimPrefix with CutPrefix.
2151- - stringscutprefix
2152- # Replace ranging over Split/Fields with SplitSeq/FieldsSeq.
2153- - stringsseq
2154- # Replace += with strings.Builder.
2155- - stringsbuilder
2156- # Replace context.WithCancel with t.Context in tests.
2157- - testingcontext
2158- # Replace wg.Add(1)/go/wg.Done() with wg.Go.
2159- - waitgroup
2124+ # Replace interface{} with any.
2125+ - any
2126+ # Replace for-range over b.N with b.Loop.
2127+ - bloop
2128+ # Replace []byte(fmt.Sprintf) with fmt.Appendf.
2129+ - fmtappendf
2130+ # Remove redundant re-declaration of loop variables.
2131+ - forvar
2132+ # Replace explicit loops over maps with calls to maps package.
2133+ - mapsloop
2134+ # Replace if/else statements with calls to min or max.
2135+ - minmax
2136+ # Simplify code by using go1.26's new(expr).
2137+ - newexpr
2138+ # Suggest replacing omitempty with omitzero for struct fields.
2139+ - omitzero
2140+ # Remove obsolete //+build comments.
2141+ - plusbuild
2142+ # Replace 3-clause for loops with for-range over integers.
2143+ - rangeint
2144+ # Replace reflect.TypeOf(x) with TypeFor[T]().
2145+ - reflecttypefor
2146+ # Replace loops with slices.Contains or slices.ContainsFunc.
2147+ - slicescontains
2148+ # Replace sort.Slice with slices.Sort for basic types.
2149+ - slicessort
2150+ # Use iterators instead of Len/At-style APIs.
2151+ - stditerators
2152+ # Replace strings.Index etc. with strings.Cut.
2153+ - stringscut
2154+ # Replace HasPrefix/TrimPrefix with CutPrefix.
2155+ - stringscutprefix
2156+ # Replace ranging over Split/Fields with SplitSeq/FieldsSeq.
2157+ - stringsseq
2158+ # Replace += with strings.Builder.
2159+ - stringsbuilder
2160+ # Replace context.WithCancel with t.Context in tests.
2161+ - testingcontext
2162+ # Replace wg.Add(1)/go/wg.Done() with wg.Go.
2163+ - waitgroup
21602164
21612165 musttag :
21622166 # A set of custom functions to check in addition to the builtin ones.
0 commit comments