-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy path.golangci.yml
More file actions
52 lines (52 loc) · 1.28 KB
/
Copy path.golangci.yml
File metadata and controls
52 lines (52 loc) · 1.28 KB
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
version: "2"
linters:
default: standard
enable:
- bidichk
- errcheck
- bodyclose
- canonicalheader
- copyloopvar
- decorder
- dogsled
- errchkjson
- errorlint
- errname
- exptostd
- gosec
- loggercheck
- misspell
- musttag
- nilerr
- asciicheck # Avoid non-ASCII characters
- gocritic # General diagnostics and best practices
- godot # Ensure comments end in periods
# - godox # Highlight TODO, FIXME, etc.
- goprintffuncname # Ensure fmt.Printf-like functions are named correctly
- govet # Catch suspicious constructs
- ineffassign # Detect ineffectual assignments
- nolintlint # Catch incorrect //nolint usage
- prealloc # Detect slice preallocation opportunities
- staticcheck # Deep static analysis
- unconvert # Remove redundant type conversions
- unparam
- unused # Find unused vars, funcs, etc.
settings:
gosec:
excludes:
- G117
- G704
exclusions:
generated: strict
rules:
- path: _test\.go
linters:
- errcheck
- dupl
- gosec
- goconst
formatters:
enable:
- gofmt
exclusions:
generated: strict