-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.golangci.yml
More file actions
59 lines (56 loc) · 1.2 KB
/
.golangci.yml
File metadata and controls
59 lines (56 loc) · 1.2 KB
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
54
55
56
57
58
59
# See https://github.com/golangci/golangci-lint#config-file
run:
deadline: 1m #Default
issues-exit-code: 1 #Default
tests: true #Default
linters:
enable:
- deadcode
- dupl
- errcheck
- gochecknoinits
- goconst
- gocritic
- gocyclo
- goimports
- golint
- gosec
- gosimple
- govet
- ineffassign
- lll
- maligned
- misspell
- nakedret
- prealloc
- scopelint
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
issues:
exclude-rules:
- path: _test\.go
linters:
- goconst # Don't run on tests because they often repeat the same string
- lll # Don't do line length checks in test code.
- dupl # Sometimes tests duplicate for the sake of clarity.
linters-settings:
misspell:
locale: US
#ignore-words:
# - someword
goimports:
local-prefixes: github.com/freeformz/bits
gocyclo:
# minimal code complexity to report, 30 by default (but we recommend 10-20)
min-complexity: 15
lll:
# max line length, lines longer will be reported. Default is 120.
line-length: 130
maligned:
suggest-new: true