-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
54 lines (50 loc) · 891 Bytes
/
.golangci.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
---
linters:
enable:
# By Default
- deadcode
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
# Extra
- asciicheck
- cyclop
- gocritic
- gofmt
- goimports
- gosec
- ifshort
- lll
- prealloc
- revive
- stylecheck
- unconvert
- whitespace
linters-settings:
lll:
line-length: 120
tab-width: 4
goimports:
local-prefixes: github.com/arxeiss/go-expression-calculator
cyclop:
max-complexity: 15
staticcheck:
go: "1.15"
checks: ["all", "-ST1000"]
stylecheck:
go: "1.15"
checks: ["all", "-ST1000"]
issues:
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0
exclude-rules:
- linters:
- revive
text: 'exported .* should have comment .*or be unexported'