@@ -780,38 +780,6 @@ linters-settings:
780
780
# Default: ""
781
781
local-prefixes : github.com/org/project
782
782
783
- gomnd :
784
- # List of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description.
785
- # Default: ["argument", "case", "condition", "operation", "return", "assign"]
786
- checks :
787
- - argument
788
- - case
789
- - condition
790
- - operation
791
- - return
792
- - assign
793
- # List of numbers to exclude from analysis.
794
- # The numbers should be written as string.
795
- # Values always ignored: "1", "1.0", "0" and "0.0"
796
- # Default: []
797
- ignored-numbers :
798
- - ' 0666'
799
- - ' 0755'
800
- - ' 42'
801
- # List of file patterns to exclude from analysis.
802
- # Values always ignored: `.+_test.go`
803
- # Default: []
804
- ignored-files :
805
- - ' magic1_.+\.go$'
806
- # List of function patterns to exclude from analysis.
807
- # Following functions are always ignored: `time.Date`,
808
- # `strconv.FormatInt`, `strconv.FormatUint`, `strconv.FormatFloat`,
809
- # `strconv.ParseInt`, `strconv.ParseUint`, `strconv.ParseFloat`.
810
- # Default: []
811
- ignored-functions :
812
- - ' ^math\.'
813
- - ' ^http\.StatusText$'
814
-
815
783
gomoddirectives :
816
784
# Allow local `replace` directives.
817
785
# Default: false
@@ -1368,6 +1336,38 @@ linters-settings:
1368
1336
# Default: ""
1369
1337
mode : restricted
1370
1338
1339
+ mnd :
1340
+ # List of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description.
1341
+ # Default: ["argument", "case", "condition", "operation", "return", "assign"]
1342
+ checks :
1343
+ - argument
1344
+ - case
1345
+ - condition
1346
+ - operation
1347
+ - return
1348
+ - assign
1349
+ # List of numbers to exclude from analysis.
1350
+ # The numbers should be written as string.
1351
+ # Values always ignored: "1", "1.0", "0" and "0.0"
1352
+ # Default: []
1353
+ ignored-numbers :
1354
+ - ' 0666'
1355
+ - ' 0755'
1356
+ - ' 42'
1357
+ # List of file patterns to exclude from analysis.
1358
+ # Values always ignored: `.+_test.go`
1359
+ # Default: []
1360
+ ignored-files :
1361
+ - ' magic1_.+\.go$'
1362
+ # List of function patterns to exclude from analysis.
1363
+ # Following functions are always ignored: `time.Date`,
1364
+ # `strconv.FormatInt`, `strconv.FormatUint`, `strconv.FormatFloat`,
1365
+ # `strconv.ParseInt`, `strconv.ParseUint`, `strconv.ParseFloat`.
1366
+ # Default: []
1367
+ ignored-functions :
1368
+ - ' ^math\.'
1369
+ - ' ^http\.StatusText$'
1370
+
1371
1371
musttag :
1372
1372
# A set of custom functions to check in addition to the builtin ones.
1373
1373
# Default: json, xml, gopkg.in/yaml.v3, BurntSushi/toml, mitchellh/mapstructure, jmoiron/sqlx
@@ -2553,7 +2553,6 @@ linters:
2553
2553
- gofumpt
2554
2554
- goheader
2555
2555
- goimports
2556
- - gomnd
2557
2556
- gomoddirectives
2558
2557
- gomodguard
2559
2558
- goprintffuncname
@@ -2574,6 +2573,7 @@ linters:
2574
2573
- makezero
2575
2574
- mirror
2576
2575
- misspell
2576
+ - mnd
2577
2577
- musttag
2578
2578
- nakedret
2579
2579
- nestif
@@ -2666,7 +2666,6 @@ linters:
2666
2666
- gofumpt
2667
2667
- goheader
2668
2668
- goimports
2669
- - gomnd
2670
2669
- gomoddirectives
2671
2670
- gomodguard
2672
2671
- goprintffuncname
@@ -2687,6 +2686,7 @@ linters:
2687
2686
- makezero
2688
2687
- mirror
2689
2688
- misspell
2689
+ - mnd
2690
2690
- musttag
2691
2691
- nakedret
2692
2692
- nestif
@@ -2736,6 +2736,7 @@ linters:
2736
2736
- ifshort # Deprecated
2737
2737
- interfacer # Deprecated
2738
2738
- maligned # Deprecated
2739
+ - gomnd # Deprecated
2739
2740
- nosnakecase # Deprecated
2740
2741
- scopelint # Deprecated
2741
2742
- structcheck # Deprecated
0 commit comments