-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy path.golangci.yml
More file actions
39 lines (34 loc) · 1.15 KB
/
Copy path.golangci.yml
File metadata and controls
39 lines (34 loc) · 1.15 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
run:
timeout: 5m
tests: true
linters:
disable-all: true
enable:
# Core correctness linters — catches real bugs, not style nits
- govet # Go vet examines Go source code
- typecheck # Type checking
- staticcheck # Static analysis
- gosimple # Simplify code
- ineffassign # Detect ineffectual assignments
- unused # Check for unused code
- gofmt # Format check
- goimports # Import formatting
# TODO: Re-enable these progressively as codebase matures
# - errcheck # Check for unchecked errors
# - gocritic # Comprehensive Go source code linter
# - revive # Fast, configurable, extensible, flexible linter
# - stylecheck # Style conventions
# - gocyclo # Cyclomatic complexity
# - errorlint # Error wrapping issues
# - unconvert # Remove unnecessary conversions
# - unparam # Find unused function parameters
linters-settings:
staticcheck:
checks: ["all"]
issues:
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0
exclude-dirs:
- vendor
- test/fixtures