Skip to content

Commit 37712dc

Browse files
committed
Introduce golangci-lint support
Introduce a root .golangci-lint.yaml file to the repository. This file is responsible for housing the golangci-lint configuration, and the various aggregate linters that are enabled/disabled. Signed-off-by: timflannagan <[email protected]>
1 parent c6cc1d7 commit 37712dc

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.golangci.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
run:
2+
timeout: 5m
3+
skip-dirs:
4+
- pkg/lib
5+
- pkg/api
6+
- pkg/fakes
7+
- pkg/package-server/apis
8+
- test/e2e
9+
10+
linters:
11+
enable:
12+
- depguard
13+
- gofmt
14+
- goimports
15+
- importas
16+
- misspell
17+
- stylecheck
18+
- tparallel
19+
- unconvert
20+
- whitespace
21+
disable:
22+
- errcheck
23+
24+
issues:
25+
max-issues-per-linter: 0
26+
max-same-issues: 0
27+
28+
output:
29+
format: tab
30+
sort-results: true

0 commit comments

Comments
 (0)