forked from lixd/mydocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
41 lines (41 loc) · 1021 Bytes
/
.golangci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
linters-settings:
misspell:
locale: US
gofmt:
# simplify code: gofmt with `-s` option, true by default
simplify: true
unused:
# Select the Go version to target. The default is '1.13'.
go: "1.17"
revive:
# see https://github.com/mgechev/revive#available-rules for details.
ignore-generated-header: true
severity: warning
rules:
- name: indent-error-flow
severity: warning
- name: add-constant
severity: warning
arguments:
- maxLitCount: "3"
allowStrs: '""'
allowInts: "0,1,2"
allowFloats: "0.0,0.,1.0,1.,2.0,2."
# all linters see: https://golangci-lint.run/usage/linters/
linters:
disable-all: true
enable:
- revive
- goimports
- misspell
- gofmt
- unused
- typecheck
- govet
- ineffassign
- gosimple
- deadcode
- structcheck
- errcheck
service:
golangci-lint-version: 1.43.0 # use the fixed version to not introduce new linters unexpectedly