@@ -780,38 +780,6 @@ linters-settings:
780780 # Default: ""
781781 local-prefixes : github.com/org/project
782782
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-
815783 gomoddirectives :
816784 # Allow local `replace` directives.
817785 # Default: false
@@ -1368,6 +1336,38 @@ linters-settings:
13681336 # Default: ""
13691337 mode : restricted
13701338
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+
13711371 musttag :
13721372 # A set of custom functions to check in addition to the builtin ones.
13731373 # Default: json, xml, gopkg.in/yaml.v3, BurntSushi/toml, mitchellh/mapstructure, jmoiron/sqlx
@@ -2553,7 +2553,6 @@ linters:
25532553 - gofumpt
25542554 - goheader
25552555 - goimports
2556- - gomnd
25572556 - gomoddirectives
25582557 - gomodguard
25592558 - goprintffuncname
@@ -2574,6 +2573,7 @@ linters:
25742573 - makezero
25752574 - mirror
25762575 - misspell
2576+ - mnd
25772577 - musttag
25782578 - nakedret
25792579 - nestif
@@ -2666,7 +2666,6 @@ linters:
26662666 - gofumpt
26672667 - goheader
26682668 - goimports
2669- - gomnd
26702669 - gomoddirectives
26712670 - gomodguard
26722671 - goprintffuncname
@@ -2687,6 +2686,7 @@ linters:
26872686 - makezero
26882687 - mirror
26892688 - misspell
2689+ - mnd
26902690 - musttag
26912691 - nakedret
26922692 - nestif
@@ -2736,6 +2736,7 @@ linters:
27362736 - ifshort # Deprecated
27372737 - interfacer # Deprecated
27382738 - maligned # Deprecated
2739+ - gomnd # Deprecated
27392740 - nosnakecase # Deprecated
27402741 - scopelint # Deprecated
27412742 - structcheck # Deprecated
0 commit comments