11run :
22 # timeout for analysis
3- deadline : 4m
4-
5- skip-files :
6- - " \\ .pb\\ .go$"
7- - " \\ .pb\\ .gw\\ .go$"
3+ timeout : 4m
4+
5+ go : " 1.23"
86
97linters-settings :
108 govet :
119 # Don't report about shadowed variables
12- check- shadowing : false
10+ shadowing : false
1311
1412 gofmt :
1513 # simplify code: gofmt with `-s` option, true by default
@@ -28,126 +26,124 @@ linters-settings:
2826 excludes :
2927 - G402 # Look for bad TLS connection settings.
3028 - G306 # Poor file permissions used when writing to a new file.
29+ - G115 # Integer overflow conversion.
3130
32- staticcheck :
33- go : " 1.18"
34- checks : ["-SA1019"]
31+ staticcheck :
32+ checks : [ "-SA1019" ]
3533
3634linters :
3735 enable-all : true
3836 disable :
39- # Global variables are used in many places throughout the code base.
40- - gochecknoglobals
41-
42- # Some lines are over 80 characters on purpose and we don't want to make them
43- # even longer by marking them as 'nolint'.
44- - lll
45-
46- # We want to allow short variable names.
47- - varnamelen
48-
49- # We want to allow TODOs.
50- - godox
51-
52- # We have long functions, especially in tests. Moving or renaming those would
53- # trigger funlen problems that we may not want to solve at that time.
54- - funlen
55-
56- # Disable for now as we haven't yet tuned the sensitivity to our codebase
57- # yet. Enabling by default for example, would also force new contributors to
58- # potentially extensively refactor code, when they want to smaller change to
59- # land.
60- - gocyclo
61- - gocognit
62- - cyclop
63-
64- # Instances of table driven tests that don't pre-allocate shouldn't trigger
65- # the linter.
66- - prealloc
67-
68- # Init functions are used by loggers throughout the codebase.
69- - gochecknoinits
70-
71- # Causes stack overflow, see https://github.com/polyfloyd/go-errorlint/issues/19.
72- - errorlint
73-
74- # Deprecated linters. See https://golangci-lint.run/usage/linters/.
75- - interfacer
76- - golint
77- - maligned
78- - scopelint
79- - varcheck
80- - structcheck
81- - deadcode
82-
83- # New linters that need a code adjustment first.
84- - wrapcheck
85- - nolintlint
86- - paralleltest
87- - tparallel
88- - testpackage
89- - gofumpt
90- - gomoddirectives
91- - ireturn
92- - maintidx
93- - nlreturn
94- - dogsled
95- - gci
96- - containedctx
97- - contextcheck
98- - errname
99- - exhaustivestruct
100- - goerr113
101- - gomnd
102- - ifshort
103- - noctx
104- - nestif
105- - wsl
106- - exhaustive
107- - forcetypeassert
108- - nilerr
109- - nilnil
110- - stylecheck
111- - thelper
112- - revive
113- - tagalign
114- - depguard
115- - nosnakecase
116- - interfacebloat
117-
118- # Additions compared to LND
119- - exhaustruct
37+ # Global variables are used in many places throughout the code base.
38+ - gochecknoglobals
39+
40+ # Some lines are over 80 characters on purpose and we don't want to make them
41+ # even longer by marking them as 'nolint'.
42+ - lll
43+
44+ # We want to allow short variable names.
45+ - varnamelen
46+
47+ # We want to allow TODOs.
48+ - godox
49+
50+ # We have long functions, especially in tests. Moving or renaming those would
51+ # trigger funlen problems that we may not want to solve at that time.
52+ - funlen
53+
54+ # Disable for now as we haven't yet tuned the sensitivity to our codebase
55+ # yet. Enabling by default for example, would also force new contributors to
56+ # potentially extensively refactor code, when they want to smaller change to
57+ # land.
58+ - gocyclo
59+ - gocognit
60+ - cyclop
61+
62+ # Instances of table driven tests that don't pre-allocate shouldn't trigger
63+ # the linter.
64+ - prealloc
65+
66+ # Init functions are used by loggers throughout the codebase.
67+ - gochecknoinits
68+
69+ # Causes stack overflow, see https://github.com/polyfloyd/go-errorlint/issues/19.
70+ - errorlint
71+
72+ # New linters that need a code adjustment first.
73+ - wrapcheck
74+ - nolintlint
75+ - paralleltest
76+ - tparallel
77+ - testpackage
78+ - gofumpt
79+ - gomoddirectives
80+ - ireturn
81+ - maintidx
82+ - nlreturn
83+ - dogsled
84+ - gci
85+ - containedctx
86+ - contextcheck
87+ - errname
88+ - err113
89+ - mnd
90+ - noctx
91+ - nestif
92+ - wsl
93+ - exhaustive
94+ - forcetypeassert
95+ - nilerr
96+ - nilnil
97+ - stylecheck
98+ - thelper
99+ - revive
100+ - tagalign
101+ - depguard
102+ - interfacebloat
103+ - inamedparam
104+ - intrange
105+ - perfsprint
106+ - protogetter
107+ - testifylint
108+
109+ # Additions compared to LND
110+ - exhaustruct
120111
121112issues :
122113 # Only show newly introduced problems.
123114 new-from-rev : 36838cf7f464cf73b0201798063b2caffeae4250
124115
125- exclude-rules :
126-
127- # Allow fmt.Printf() in test files
128- - path : _test\.go
129- linters :
130- - forbidigo
131- - unparam
132- - gosec
133- - path : _mock\.go
134- linters :
135- - gosec
136-
137- # Allow fmt.Printf() in loopd
138- - path : cmd/loopd/*
139- linters :
140- - forbidigo
141- - path : loopd/*
142- linters :
143- - forbidigo
144-
145- # Allow fmt.Printf() in loop
146- - path : cmd/loop/*
147- linters :
148- - forbidigo
116+ exclude-files :
117+ - " \\ .pb\\ .go$"
118+ - " \\ .pb\\ .gw\\ .go$"
149119
150- # Allow fmt.Printf() in stateparser
151- - path : fsm/stateparser/*
152- linters :
153- - forbidigo
120+ exclude-rules :
121+ # Allow fmt.Printf() in test files
122+ - path : _test\.go
123+ linters :
124+ - forbidigo
125+ - unparam
126+ - gosec
127+ - path : _mock\.go
128+ linters :
129+ - gosec
130+
131+ # Allow fmt.Printf() in loopd
132+ - path : cmd/loopd/*
133+ linters :
134+ - forbidigo
135+ - errcheck
136+ - path : loopd/*
137+ linters :
138+ - forbidigo
139+
140+ # Allow fmt.Printf() in loop
141+ - path : cmd/loop/*
142+ linters :
143+ - forbidigo
144+ - errcheck
145+
146+ # Allow fmt.Printf() in stateparser
147+ - path : fsm/stateparser/*
148+ linters :
149+ - forbidigo
0 commit comments