-
Notifications
You must be signed in to change notification settings - Fork 6
/
.golangci.yaml
51 lines (48 loc) · 1.42 KB
/
.golangci.yaml
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
run:
tests: false
skip-dirs:
- test
go: 1.21
fix: true
linters-settings:
maligned:
suggest-new: true
staticcheck:
go: "1.21"
checks: [ "all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022","-SA6005","-SA1019" ]
gocritic:
disabled-checks:
- captLocal
- commentFormatting
revive:
rules:
- name: var-naming
disabled: true
nolintlint:
require-explanation: true
linters:
disable-all: true
enable:
- asasalint # check for pass []any as any in variadic func(...any)
- asciicheck # simple linter to check that your code does not contain non-ASCII identifiers
- errchkjson # checks types passed to the json encoding functions
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13
- exportloopref # checks for pointers to enclosing loop variables
- gocritic # provides diagnostics that check for bugs, performance and style issues
- revive # fast, configurable, extensible, flexible, and beautiful linter for Go. Drop-in replacement of golint
- nolintlint # requiresw to write notes why linter is disabled
- errcheck
- staticcheck
- typecheck
- unused
- govet
- ineffassign
- gosimple
- durationcheck
- errchkjson
- errorlint
- makezero
- exportloopref
- errchkjson
- prealloc
- deadcode