File tree Expand file tree Collapse file tree 2 files changed +47
-16
lines changed
cmd/internal/gowebhookexec Expand file tree Collapse file tree 2 files changed +47
-16
lines changed Original file line number Diff line number Diff line change 22linters-settings :
33 govet :
44 check-shadowing : true
5- revive :
6- severity : warning
5+ golint :
6+ min-confidence : 0
77 gocyclo :
88 min-complexity : 42
99 cyclop :
1010 max-complexity : 42
11+ maligned :
12+ suggest-new : true
1113 dupl :
1214 threshold : 200
1315 goconst :
@@ -19,23 +21,52 @@ linters-settings:
1921linters :
2022 enable-all : true
2123 disable :
22- - exhaustivestruct
23- - funlen
24- - goconst
25- - godot
26- - goerr113
27- - golint
24+ - golint # deprecated, replaced with revive
25+ - interfacer # deprecated
26+ - maligned # deprecated
27+ - wrapcheck
28+ - nlreturn
2829 - gomnd
29- - interfacer
30+ - goerr113
31+ - exhaustivestruct
32+ - wsl
33+ - whitespace
3034 - lll
31- - maligned
35+ - scopelint
3236 - nestif
33- - nlreturn
37+ - funlen
3438 - paralleltest
35- - scopelint
36- - whitespace
37- - wrapcheck
38- - wsl
39+ - godot
40+ - varnamelen
41+ - ireturn
42+ - ifshort
43+ - thelper
44+ - wastedassign
45+ - goconst
46+ - gci
47+ - exhaustruct
48+ - nonamedreturns
49+ - interfacebloat
50+ - dupword
51+ - forcetypeassert # tmp needs to be on
52+ - ifshort # deprecated
53+ - structcheck # deprecated
54+ - deadcode # deprecated
55+ - nosnakecase # deprecated
56+ - varcheck # deprecated
57+ - rowserrcheck # deprecated
58+ - sqlclosecheck # deprecated
59+ - wastedassign # deprecated
60+ - golint # deprecated
61+ - interfacer # deprecated
62+ - maligned # deprecated
63+
64+ issues :
65+ exclude :
66+ # bugs of typecheck linter
67+ - " undeclared name: `shellquote`"
68+ - " github.com/kballard/go-shellquote\" imported but not used"
69+ - " github.com/haproxytech/config-parser/v4/types\" imported but not used"
3970
4071run :
4172 skip-dirs :
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ func Listen(config ViperConfig) {
2222
2323 if config .SslKey != "" && config .SslCert != "" {
2424 log .Fatal (server .ListenAndServeTLS (config .SslCert , config .SslKey ))
25- } else {
25+ } else { //nolint:revive
2626 log .Fatal (server .ListenAndServe ())
2727 }
2828}
You can’t perform that action at this time.
0 commit comments