go-clean-template
/
.golangci.yml
137 строк · 2.2 Кб
1linters-settings:
2gci:
3local-prefixes: github.com/evrone/go-clean-template
4dupl:
5threshold: 100
6errorlint:
7errorf: true
8errcheck:
9check-type-assertions: true
10check-blank: true
11exhaustive:
12check-generated: false
13default-signifies-exhaustive: false
14funlen:
15lines: 65
16statements: 40
17gocognit:
18min-complexity: 15
19gocyclo:
20min-complexity: 10
21goconst:
22min-len: 2
23min-occurrences: 2
24gocritic:
25enabled-tags:
26- diagnostic
27- experimental
28- opinionated
29- performance
30- style
31disabled-checks:
32- dupImport
33- unnecessaryBlock
34gofumpt:
35extra-rules: true
36gomnd:
37settings:
38mnd:
39checks:
40- argument
41- case
42- condition
43- operation
44- return
45govet:
46check-shadowing: true
47misspell:
48locale: US
49nestif:
50min-complexity: 4
51nolintlint:
52require-explanation: true
53require-specific: true
54
55linters:
56disable-all: true
57enable:
58- asciicheck
59- bodyclose
60- cyclop
61- deadcode
62- depguard
63- dogsled
64- dupl
65- durationcheck
66- errcheck
67- errorlint
68- exhaustive
69- exportloopref
70- forbidigo
71- funlen
72- gci
73- gochecknoglobals
74- gochecknoinits
75- gocognit
76- goconst
77- gocritic
78- gocyclo
79- godot
80- godox
81- goerr113
82- gofmt
83- gofumpt
84- goimports
85- gomnd
86- gomodguard
87- goprintffuncname
88- gosec
89- gosimple
90- govet
91- ineffassign
92- makezero
93- misspell
94- nakedret
95- nestif
96- nlreturn
97- noctx
98- nolintlint
99- paralleltest
100- predeclared
101- revive
102- rowserrcheck
103- sqlclosecheck
104- staticcheck
105- structcheck
106- stylecheck
107- tparallel
108- thelper
109- typecheck
110- unconvert
111- unparam
112- unused
113- varcheck
114- wsl
115- whitespace
116
117# disable:
118# - exhaustivestruct
119# - ifshort
120# - goheader
121# - prealloc
122# - testpackage
123# - wrapcheck
124
125issues:
126exclude-rules:
127- path: integration-test
128linters:
129- paralleltest
130- godot
131- path: internal/controller/http
132linters:
133- godot
134
135run:
136skip-dirs:
137- docs
138