/
.golangci.yml
46 lines (45 loc) · 882 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
linters-settings:
depguard:
rules:
main:
files:
- "!**/internal/**/*.go"
- "!$test"
allow:
- $gostd
- "github.com/editorconfig/editorconfig-core-go/v2"
- "github.com/hashicorp/go-multierror"
deny: []
internal:
files:
- "**/internal/**/*.go"
- "!$test"
allow:
- $gostd
- "github.com/google/go-cmp"
gci:
sections:
- standard
- default
- prefix(github.com/editorconfig/editorconfig-core-go)
cyclop:
max-complexity: 15
package-average: 10
linters:
enable-all: true
disable:
- deadcode
- exhaustivestruct
- exhaustruct
- golint
- gomnd
- ifshort
- interfacer
- maligned
- nosnakecase
- scopelint
- structcheck
- tagliatelle
- varcheck
- varnamelen
fast: false