Skip to content

Commit c28823d

Browse files
committed
disable add-constant, it just annoys me
1 parent ab5c3af commit c28823d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.golangci.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,7 @@ linters:
171171
rules:
172172
- name: add-constant
173173
severity: warning
174-
disabled: false
175-
exclude: [""]
176-
arguments:
177-
- max-lit-count: "5"
178-
allow-strs: '"","\n"'
179-
allow-ints: "0,1,2,3,24,30,60,100,365,0o600,0o700,0o750,0o755"
180-
allow-floats: "0.0,0.,1.0,1.,2.0,2."
174+
disabled: true
181175
- name: cognitive-complexity
182176
arguments: [55]
183177
- name: cyclomatic

0 commit comments

Comments
 (0)