There was an error while loading. Please reload this page.
1 parent 9e139eb commit d3249adCopy full SHA for d3249ad
1 file changed
.golangci.yml
@@ -0,0 +1,48 @@
1
+# https://golangci-lint.run/usage/configuration
2
+version: "2"
3
+
4
+run:
5
+ timeout: 5m
6
+ tests: true
7
+ concurrency: 4
8
9
+linters:
10
+ enable:
11
+ - govet
12
+ - errcheck
13
+ - staticcheck
14
+ - revive
15
+ - ineffassign
16
+ - unused
17
+ - unparam
18
+ - misspell
19
+ - nakedret
20
+ - bodyclose
21
+ - gocritic
22
+ - makezero
23
+ - gosec
24
+ settings:
25
+ staticcheck:
26
+ checks:
27
+ - all
28
+ - "-QF1008" # Allow embedded structs to be referenced by field
29
+ - "-ST1000" # Do not require package comments
30
+ revive:
31
+ rules:
32
+ - name: exported
33
+ disabled: true
34
35
36
+ - name: package-comments
37
38
39
+formatters:
40
41
+ - gofmt
42
+ - goimports
43
44
+output:
45
+ formats:
46
+ text:
47
+ print-linter-name: true
48
+ print-issued-lines: true
0 commit comments