-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.golangci.yml
More file actions
26 lines (24 loc) · 814 Bytes
/
.golangci.yml
File metadata and controls
26 lines (24 loc) · 814 Bytes
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
version: "2"
run:
timeout: 5m
skip-dirs:
- .git
- vendor
linters:
exclusions:
rules:
- path: _test\.go
linters:
- errcheck
default: none
enable:
- wsl # Ensures there is a space before inline comments (//), following Go style.
- nilerr # Detects useless 'return nil, nil' patterns and other invalid nil error returns.
- staticcheck # Enforces Go idiomatic conventions (naming, comments, etc.).
- errcheck # Checks if the code is formatted according to `gofmt`.
- govet # Detects common mistakes not caught by the compiler (e.g., Printf format issues).
- gocritic # Provides extra checks for non-idiomatic patterns, redundancy, etc.
- lll # Warns about long lines (customizable max length, default: 120).
formatters:
enable:
- gofmt