File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,6 @@ linters:
8888 - makezero # finds slice declarations with non-zero initial length
8989 - modernize # suggests using modern Go features
9090 - mirror # reports wrong mirror patterns of bytes/strings usage
91- - mnd # detects magic numbers
9291 - musttag # enforces field tags in (un)marshaled structs
9392 - nakedret # finds naked returns in functions greater than a specified function length
9493 - nestif # reports deeply nested if statements
@@ -139,6 +138,7 @@ linters:
139138 # - inamedparam # [great idea, but too strict, need to ignore a lot of cases by default] reports interfaces with unnamed method parameters
140139 # - interfacebloat # checks the number of methods inside an interface
141140 # - ireturn # accept interfaces, return concrete types
141+ # - mnd # detects magic numbers
142142 # - noinlineerr # disallows inline error handling `if err := ...; err != nil {`
143143 # - prealloc # [premature optimization, but can be used in some cases] finds slice declarations that could potentially be preallocated
144144 # - tagalign # checks that struct tags are well aligned
You can’t perform that action at this time.
0 commit comments