-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
45 lines (41 loc) · 1.28 KB
/
.golangci.yml
File metadata and controls
45 lines (41 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
version: "2"
run:
build-tags:
- integration
formatters:
enable:
- gofumpt
- gci
settings:
gci:
sections:
- standard
- default
- localmodule
linters:
default: none
enable:
- bidichk # Unicode bidi exploits in source
- copyloopvar # Go 1.22+ loop-var gotcha catcher
- errcheck # unchecked errors
- errorlint # errors.Is/As, %w in fmt.Errorf
- gocritic # opinionated style pack
- govet # stdlib vet suite
- ineffassign # assignments that are never read
- misspell # typos in comments and strings
- nolintlint # //nolint directives must be well-formed
- predeclared # shadowing of builtins
- revive # fast golint replacement
- staticcheck # correctness + simplification
- tparallel # t.Parallel() correctness
- unconvert # redundant type conversions
- unparam # unused function parameters
- unused # dead code
- wastedassign # assignments overwritten before use
- whitespace # leading/trailing blank lines in funcs
exclusions:
rules:
- path: "_test\\.go$"
linters: [errcheck]
- path: "example/"
linters: [errcheck]