Skip to content

Commit fdc2498

Browse files
authored
Create .golangci.yml
1 parent 6e6ad50 commit fdc2498

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/.golangci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: "2"
2+
3+
linters:
4+
default: none
5+
enable:
6+
- gocognit # 检查函数 Cognitive Complexity 复杂度
7+
- gofmt
8+
- errcheck
9+
- staticcheck
10+
11+
settings:
12+
errcheck:
13+
exclude-functions:
14+
- (io.Closer).Close
15+
run:
16+
tests: false
17+
skip-dirs:
18+
- '(^|/)test($|/)'

0 commit comments

Comments
 (0)