-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
50 lines (47 loc) · 1.14 KB
/
.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
linters-settings:
revive:
ignore-generated-header: true
enable-all-rules: true
rules:
- name: argument-limit
disabled: true
- name: line-length-limit
severity: error
arguments: [120]
- name: unhandled-error
arguments : ["fmt.Printf", "myFunction"]
- name: cyclomatic
disabled: false
arguments: [3]
- name: file-header
disabled: true
- name: function-result-limit
arguments: [3]
- name: max-public-structs
disabled: true
arguments: [3]
- name: cognitive-complexity
arguments: [7]
- name: function-length
arguments: [10,0]
misspell:
locale: US
linters:
disable-all: true
enable:
- typecheck
- goimports
- misspell
- govet
- revive
- ineffassign
- gosimple
- deadcode
- structcheck
issues:
exclude-use-default: false
exclude:
- should have a package comment
- error strings should not be capitalized or end with punctuation or a newline
service:
golangci-lint-version: 1.31.0 # use the fixed version to not introduce new linters unexpectedly