-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
31 lines (29 loc) · 1.16 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
run:
go: "1.19"
modules-download-mode: readonly
linters:
disable-all: true
enable:
- asciicheck # Detects non-ASCII identifiers
- bidichk # Detects dangerous unicode character sequence
- cyclop # Detects high cyclomatic complexity
- decorder # Check declaration order and count of types, constants, variables and functions
- depguard # Detects if import
- errcheck # Detects unchecked errors
- exportloopref # Detects scope issues
- gochecknoglobals # Detects global variables
- gochecknoinits # Detects init functions
- gocritic # Enabled to make code cleaner
- gofumpt # Enabled to make code cleaner
- goimports # Enabled to make code cleaner
- gosimple # Enabled to make code simpler
- govet # Detects suspicious constructs
- ineffassign # Detects unused assigned variables
- nilerr # Detects nil returns without an error
- staticcheck # Static analysis checks
- testableexamples # Ensures examples are testable
- typecheck # type-check
- unparam # Reports unused function parameters
- unused # Detects unused constants, variables, functions and types
service:
golangci-lint-version: 1.53.x