File tree Expand file tree Collapse file tree 1 file changed +21
-45
lines changed Expand file tree Collapse file tree 1 file changed +21
-45
lines changed Original file line number Diff line number Diff line change 1
1
# taken from https://github.com/nix-community/go-nix/blob/main/.golangci.yml
2
2
linters :
3
- enable :
4
- - errname
5
- - errorlint
6
- - exhaustive
7
- - gci
8
- - gochecknoglobals
9
- - gochecknoinits
10
- - goconst
11
- - godot
12
- - gofumpt
13
- - goheader
14
- - goimports
15
- - gosec
16
- - importas
17
- - intrange
18
- - ireturn
19
- - lll
20
- - makezero
21
- - mirror
22
- - misspell
23
- - nakedret
24
- - nestif
25
- - nilerr
26
- - nilnil
27
- - nlreturn
28
- - noctx
29
- - nolintlint
30
- - perfsprint
31
- - prealloc
32
- - predeclared
33
- - revive
34
- - rowserrcheck
35
- - stylecheck
36
- - tagalign
37
- - tagliatelle
38
- - tenv
39
- - testifylint
40
- - testpackage
41
- - thelper
42
- - unconvert
43
- - unparam
44
- - wastedassign
45
- - whitespace
46
- - wrapcheck
47
- - wsl
3
+ enable-all : true
4
+ disable :
5
+ - depguard
6
+ - execinquery
7
+ - exhaustruct
8
+ - exportloopref
9
+ - funlen
10
+ - godox
11
+ - gomnd
12
+ - mnd
13
+ - varnamelen
14
+ - forbidigo
15
+ - gocognit
16
+ - gocyclo
17
+ - cyclop
18
+ - err113
19
+ - maintidx
20
+ # would be nice to have but too many tests depend on environment variables, which is not allowed for t.Parallel()
21
+ - paralleltest
22
+ # would be also nice to enable because I also found some cases confusing
23
+ - nonamedreturns
You can’t perform that action at this time.
0 commit comments