Skip to content

Commit 2def90d

Browse files
committed
Update golangci
This commit relaxes line length from 100 to 120, and disables a bunch of linters we do not want. Signed-off-by: apostasie <[email protected]>
1 parent 83d5173 commit 2def90d

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

mod/tigron/.golangci.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,23 @@ issues:
1313
linters:
1414
default: all
1515
disable:
16-
- cyclop
17-
- exhaustruct
18-
- funlen
19-
- godox
20-
- nonamedreturns
16+
# These are the linters that we know we do not want
17+
- cyclop # provided by revive
18+
- exhaustruct # does not serve much of a purpose
19+
- funlen # provided by revive
20+
- gocognit # provided by revive
21+
- goconst # provided by revive
22+
- godox # not helpful unless we could downgrade it to warning / info
23+
- ginkgolinter # no ginkgo
24+
- gomodguard # we use depguard instead
25+
- ireturn # too annoying with not enough value
26+
- lll # provided by golines
27+
- nonamedreturns # named returns are occasionally useful
28+
- prealloc # premature optimization
29+
- promlinter # no prometheus
30+
- sloglint # no slog
31+
- testifylint # no testify
32+
- zerologlint # no zerolog
2133
settings:
2234
depguard:
2335
rules:
@@ -51,7 +63,7 @@ formatters:
5163
gofumpt:
5264
extra-rules: true
5365
golines:
54-
max-len: 100
66+
max-len: 120
5567
tab-len: 4
5668
shorten-comments: true
5769
enable:

0 commit comments

Comments
 (0)