@@ -779,38 +779,6 @@ linters-settings:
779779 # Default: ""
780780 local-prefixes : github.com/org/project
781781
782- gomnd :
783- # List of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description.
784- # Default: ["argument", "case", "condition", "operation", "return", "assign"]
785- checks :
786- - argument
787- - case
788- - condition
789- - operation
790- - return
791- - assign
792- # List of numbers to exclude from analysis.
793- # The numbers should be written as string.
794- # Values always ignored: "1", "1.0", "0" and "0.0"
795- # Default: []
796- ignored-numbers :
797- - ' 0666'
798- - ' 0755'
799- - ' 42'
800- # List of file patterns to exclude from analysis.
801- # Values always ignored: `.+_test.go`
802- # Default: []
803- ignored-files :
804- - ' magic1_.+\.go$'
805- # List of function patterns to exclude from analysis.
806- # Following functions are always ignored: `time.Date`,
807- # `strconv.FormatInt`, `strconv.FormatUint`, `strconv.FormatFloat`,
808- # `strconv.ParseInt`, `strconv.ParseUint`, `strconv.ParseFloat`.
809- # Default: []
810- ignored-functions :
811- - ' ^math\.'
812- - ' ^http\.StatusText$'
813-
814782 gomoddirectives :
815783 # Allow local `replace` directives.
816784 # Default: false
@@ -1367,6 +1335,38 @@ linters-settings:
13671335 # Default: ""
13681336 mode : restricted
13691337
1338+ mnd :
1339+ # List of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description.
1340+ # Default: ["argument", "case", "condition", "operation", "return", "assign"]
1341+ checks :
1342+ - argument
1343+ - case
1344+ - condition
1345+ - operation
1346+ - return
1347+ - assign
1348+ # List of numbers to exclude from analysis.
1349+ # The numbers should be written as string.
1350+ # Values always ignored: "1", "1.0", "0" and "0.0"
1351+ # Default: []
1352+ ignored-numbers :
1353+ - ' 0666'
1354+ - ' 0755'
1355+ - ' 42'
1356+ # List of file patterns to exclude from analysis.
1357+ # Values always ignored: `.+_test.go`
1358+ # Default: []
1359+ ignored-files :
1360+ - ' magic1_.+\.go$'
1361+ # List of function patterns to exclude from analysis.
1362+ # Following functions are always ignored: `time.Date`,
1363+ # `strconv.FormatInt`, `strconv.FormatUint`, `strconv.FormatFloat`,
1364+ # `strconv.ParseInt`, `strconv.ParseUint`, `strconv.ParseFloat`.
1365+ # Default: []
1366+ ignored-functions :
1367+ - ' ^math\.'
1368+ - ' ^http\.StatusText$'
1369+
13701370 musttag :
13711371 # A set of custom functions to check in addition to the builtin ones.
13721372 # Default: json, xml, gopkg.in/yaml.v3, BurntSushi/toml, mitchellh/mapstructure, jmoiron/sqlx
@@ -2552,7 +2552,6 @@ linters:
25522552 - gofumpt
25532553 - goheader
25542554 - goimports
2555- - gomnd
25562555 - gomoddirectives
25572556 - gomodguard
25582557 - goprintffuncname
@@ -2573,6 +2572,7 @@ linters:
25732572 - makezero
25742573 - mirror
25752574 - misspell
2575+ - mnd
25762576 - musttag
25772577 - nakedret
25782578 - nestif
@@ -2665,7 +2665,6 @@ linters:
26652665 - gofumpt
26662666 - goheader
26672667 - goimports
2668- - gomnd
26692668 - gomoddirectives
26702669 - gomodguard
26712670 - goprintffuncname
@@ -2686,6 +2685,7 @@ linters:
26862685 - makezero
26872686 - mirror
26882687 - misspell
2688+ - mnd
26892689 - musttag
26902690 - nakedret
26912691 - nestif
@@ -2735,6 +2735,7 @@ linters:
27352735 - ifshort # Deprecated
27362736 - interfacer # Deprecated
27372737 - maligned # Deprecated
2738+ - gomnd # Deprecated
27382739 - nosnakecase # Deprecated
27392740 - scopelint # Deprecated
27402741 - structcheck # Deprecated
0 commit comments