Skip to content

Commit b328c86

Browse files
committed
more allowed ints, less forbidgo
1 parent 3d4b3f6 commit b328c86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.golangci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ linters:
4040
- gochecknoglobals # checks that no global variables exist
4141
- cyclop # replaced by revive
4242
- gocyclo # replaced by revive
43+
- forbidigo # needs configuration to be useful
4344
- funlen # replaced by revive
4445
- godox # TODO's are OK
4546
- ireturn # It's OK
@@ -175,7 +176,7 @@ linters:
175176
arguments:
176177
- max-lit-count: "5"
177178
allow-strs: '"","\n"'
178-
allow-ints: "0,1,2,3,24,30,365,1024,0o600,0o700,0o750,0o755"
179+
allow-ints: "0,1,2,3,24,30,60,100,365,0o600,0o700,0o750,0o755"
179180
allow-floats: "0.0,0.,1.0,1.,2.0,2."
180181
- name: cognitive-complexity
181182
arguments: [55]

0 commit comments

Comments
 (0)