-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.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