Skip to content

Commit ca98ef1

Browse files
committed
chore(lint): add golangci-lint configuration
- Add .golangci.yml with standard Go linters - Enable gofmt, govet, staticcheck, misspell, etc. - Set timeout and complexity thresholds
1 parent 2340c9a commit ca98ef1

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.golangci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
run:
2+
timeout: 5m
3+
4+
linters-settings:
5+
gocyclo:
6+
min-complexity: 15
7+
goconst:
8+
min-len: 3
9+
min-occurrences: 3
10+
gofmt:
11+
simplify: true
12+
govet:
13+
enable-all: true
14+
misspell:
15+
locale: US
16+
17+
linters:
18+
enable:
19+
- gofmt
20+
- goimports
21+
- govet
22+
- ineffassign
23+
- misspell
24+
- goconst
25+
- gocyclo
26+
- staticcheck
27+
28+
issues:
29+
max-issues-per-linter: 0
30+
max-same-issues: 0

0 commit comments

Comments
 (0)