Skip to content

Commit e5c47a3

Browse files
committed
Added golangci-lint configuration.
1 parent 43dbf19 commit e5c47a3

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.golangci.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Configuration file for golangci-lint
2+
# See https://golangci-lint.run/usage/configuration/ for more information
3+
4+
version: "2"
5+
6+
run:
7+
timeout: 5m
8+
tests: true
9+
10+
linters:
11+
default: all
12+
#enable:
13+
# # Default linters
14+
# - errcheck
15+
# - govet
16+
# - ineffassign
17+
# - staticcheck
18+
# - unused
19+
# # Additional linters
20+
# - gosec
21+
# - misspell
22+
# - revive
23+
# - bodyclose
24+
# - noctx
25+
26+
exclusions:
27+
rules:
28+
- path: main_test.go
29+
linters:
30+
- gosec
31+
32+
issues:
33+
max-issues-per-linter: 0
34+
max-same-issues: 0

0 commit comments

Comments
 (0)