File tree Expand file tree Collapse file tree 2 files changed +14
-18
lines changed
Expand file tree Collapse file tree 2 files changed +14
-18
lines changed Original file line number Diff line number Diff line change 11linters-settings :
2- govet :
3- check-shadowing : true
4- golint :
5- min-confidence : 0
62 gocyclo :
73 min-complexity : 45
8- maligned :
9- suggest-new : true
104 dupl :
115 threshold : 200
126 goconst :
@@ -16,7 +10,6 @@ linters-settings:
1610linters :
1711 enable-all : true
1812 disable :
19- - maligned
2013 - unparam
2114 - lll
2215 - gochecknoinits
@@ -29,17 +22,13 @@ linters:
2922 - wrapcheck
3023 - testpackage
3124 - nlreturn
32- - gomnd
33- - exhaustivestruct
34- - goerr113
3525 - errorlint
3626 - nestif
3727 - godot
3828 - gofumpt
3929 - paralleltest
4030 - tparallel
4131 - thelper
42- - ifshort
4332 - exhaustruct
4433 - varnamelen
4534 - gci
@@ -52,10 +41,15 @@ linters:
5241 - forcetypeassert
5342 - cyclop
5443 # deprecated linters
55- - deadcode
56- - interfacer
57- - scopelint
58- - varcheck
59- - structcheck
60- - golint
61- - nosnakecase
44+ # - deadcode
45+ # - interfacer
46+ # - scopelint
47+ # - varcheck
48+ # - structcheck
49+ # - golint
50+ # - nosnakecase
51+ # - maligned
52+ # - goerr113
53+ # - ifshort
54+ # - gomnd
55+ # - exhaustivestruct
Original file line number Diff line number Diff line change @@ -500,6 +500,8 @@ func (rs *Ruleset) Dasherize(word string) string {
500500}
501501
502502// "1031" -> "1031st"
503+ //
504+ //nolint:mnd
503505func (rs * Ruleset ) Ordinalize (str string ) string {
504506 number , err := strconv .Atoi (str )
505507 if err != nil {
You can’t perform that action at this time.
0 commit comments