Skip to content

Commit 73d6d4d

Browse files
mschfhmihaiplesa
authored andcommitted
chore(lint): disable mnd linter
1 parent 31786d7 commit 73d6d4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.golangci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)