1+ version : " 2"
2+
3+ linters :
4+ default : none
5+ enable :
6+ - asasalint # checks for pass []any as any in variadic func(...any)
7+ - asciicheck # checks that your code does not contain non-ASCII identifiers
8+ - bidichk # checks for dangerous unicode character sequences
9+ - bodyclose # checks whether HTTP response body is closed successfully
10+ - copyloopvar # detects places where loop variables are copied (Go 1.22+)
11+ - durationcheck # checks for two durations multiplied together
12+ - exptostd # detects functions from golang.org/x/exp/ that can be replaced by std functions
13+ - fatcontext # detects nested contexts in loops
14+ - gocheckcompilerdirectives # validates go compiler directive comments (//go:)
15+ - gochecksumtype # checks exhaustiveness on Go "sum types"
16+ - gocritic # provides diagnostics that check for bugs, performance and style issues
17+ - gomoddirectives # manages the use of 'replace', 'retract', and 'excludes' directives in go.mod
18+ - goprintffuncname # checks that printf-like functions are named with f at the end
19+ - govet # reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
20+ - ineffassign # detects when assignments to existing variables are not used
21+ - nilerr # finds the code that returns nil even if it checks that the error is not nil
22+ - nolintlint # reports ill-formed or insufficient nolint directives
23+ - nosprintfhostport # checks for misuse of Sprintf to construct a host with port in a URL
24+ - reassign # checks that package variables are not reassigned
25+ - unused # checks for unused constants, variables, functions and types
26+ - gosec
27+ - staticcheck
28+ # To enable later due to too many issues, and confirm we need them:
29+ # - errcheck
30+
31+ exclusions :
32+ paths :
33+ - third-party
34+ rules :
35+ - path : _test\.go$
36+ linters :
37+ - bodyclose
38+ - gosec
39+
40+ settings :
41+ gocritic :
42+ disabled-checks :
43+ - appendAssign
44+ disabled-tags :
45+ - style
46+
47+ formatters :
48+ enable :
49+ - gofmt
50+ exclusions :
51+ paths :
52+ - third-party
53+
54+ issues :
55+ max-issues-per-linter : 0
56+ max-same-issues : 0
0 commit comments