-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
.golangci.yml
83 lines (80 loc) · 4.72 KB
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
linters:
fast: true
fetch: >
curl -s https://golangci-lint.run/usage/linters/ \
| pup ':parent-of(#enabled-by-default-linters)' \
| pup 'ul li a json{}' \
| jq '.[] | (.text + " " + .href)' \
| sed 's/"//g' \
| column -t
enable:
- deadcode # https://github.com/remyoudompheng/go-misc/tree/master/deadcode
- errcheck # https://github.com/kisielk/errcheck
- gosimple # https://github.com/dominikh/go-tools/tree/master/simple
- govet # https://golang.org/cmd/vet/
- ineffassign # https://github.com/gordonklaus/ineffassign
- staticcheck # https://staticcheck.io/
- structcheck # https://github.com/opennota/check
- typecheck # -
- unused # https://github.com/dominikh/go-tools/tree/master/unused
- varcheck # https://github.com/opennota/check
- bodyclose # https://github.com/timakin/bodyclose
- exhaustive # https://github.com/nishanths/exhaustive
- exportloopref # https://github.com/kyoh86/exportloopref
- gocritic # https://github.com/go-critic/go-critic
- noctx # https://github.com/sonatard/noctx
# - asciicheck # https://github.com/tdakkota/asciicheck
# - cyclop # https://github.com/bkielbasa/cyclop
# - depguard # https://github.com/OpenPeeDeeP/depguard
# - dogsled # https://github.com/alexkohler/dogsled
# - dupl # https://github.com/mibk/dupl
# - durationcheck # https://github.com/charithe/durationcheck
# - errorlint # https://github.com/polyfloyd/go-errorlint
# - exhaustivestruct # https://github.com/mbilski/exhaustivestruct
# - forbidigo # https://github.com/ashanbrown/forbidigo
# - funlen # https://github.com/ultraware/funlen
# - gci # https://github.com/daixiang0/gci
# - gochecknoglobals # https://github.com/leighmcculloch/gochecknoglobals
# - gochecknoinits # https://github.com/leighmcculloch/gochecknoinits
# - gocognit # https://github.com/uudashr/gocognit
# - goconst # https://github.com/jgautheron/goconst
# - gocyclo # https://github.com/fzipp/gocyclo
# - godot # https://github.com/tetafro/godot
# - godox # https://github.com/matoous/godox
# - goerr113 # https://github.com/Djarvur/go-err113
# - gofmt # https://golang.org/cmd/gofmt/
# - gofumpt # https://github.com/mvdan/gofumpt
# - goheader # https://github.com/denis-tingajkin/go-header
# - goimports # https://godoc.org/golang.org/x/tools/cmd/goimports
# - golint # https://github.com/golang/lint
# - gomnd # https://github.com/tommy-muehle/go-mnd
# - gomodguard # https://github.com/ryancurrah/gomodguard
# - goprintffuncname # https://github.com/jirfag/go-printf-func-name
# - gosec # https://github.com/securego/gosec
# - ifshort # https://github.com/esimonov/ifshort
# - interfacer # https://github.com/mvdan/interfacer
# - lll # https://github.com/walle/lll
# - makezero # https://github.com/ashanbrown/makezero
# - maligned # https://github.com/mdempsky/maligned
# - misspell # https://github.com/client9/misspell
# - nakedret # https://github.com/alexkohler/nakedret
# - nestif # https://github.com/nakabonne/nestif
# - nlreturn # https://github.com/ssgreg/nlreturn
# - nolintlint # https://github.com/golangci/golangci-lint/blob/master/pkg/golinters/nolintlint/README.md
# - paralleltest # https://github.com/kunwardeep/paralleltest
# - prealloc # https://github.com/alexkohler/prealloc
# - predeclared # https://github.com/nishanths/predeclared
# - revive # https://github.com/mgechev/revive
# - rowserrcheck # https://github.com/jingyugao/rowserrcheck
# - scopelint # https://github.com/kyoh86/scopelint
# - sqlclosecheck # https://github.com/ryanrolds/sqlclosecheck
# - stylecheck # https://github.com/dominikh/go-tools/tree/master/stylecheck
# - testpackage # https://github.com/maratori/testpackage
# - thelper # https://github.com/kulti/thelper
# - tparallel # https://github.com/moricho/tparallel
# - unconvert # https://github.com/mdempsky/unconvert
# - unparam # https://github.com/mvdan/unparam
# - whitespace # https://github.com/ultraware/whitespace
# - wrapcheck # https://github.com/tomarrell/wrapcheck
# - wsl # https://github.com/bombsimon/wsl
# - https://github.com/kyoh86/looppointer