-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.golangci.yml
89 lines (78 loc) · 1.68 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Example configuration at https://golangci-lint.run/usage/configuration/#config-file
run:
timeout: 3m
concurrency: 4
issues-exit-code: 1
tests: true
output:
format: tab
sort-results: true
linters-settings:
nolintlint:
allow-leading-space: false
require-specific: true
require-explanation: true
revive:
ignore-generated-header: true
severity: warning
confidence: 0.8
errorCode: 1
warningCode: 2
rules:
- name: atomic
- name: blank-imports
- name: dot-imports
- name: context-as-argument
- name: context-keys-type
- name: error-return
- name: error-strings
- name: error-naming
- name: errorf
- name: increment-decrement
- name: var-naming
- name: var-declaration
- name: receiver-naming
- name: redefines-builtin-id
- name: unused-parameter
- name: time-naming
- name: range
- name: indent-error-flow
- name: superfluous-else
- name: empty-block
- name: unreachable-code
- name: unnecessary-stmt
- name: unexported-return
- name: exported
staticcheck:
go: "1.17"
checks: ["all"]
errcheck:
check-type-assertions: true
govet:
check-shadowing: false
disable-all: true
enable:
- lostcancel
- copylocks
- loopclosure
gci:
sections:
- standard
- default
- prefix(github.com/c13n-io/c13n-go)
section-separators:
- newLine
linters:
disable-all: true
enable:
- nolintlint
- revive
- staticcheck
- gci
- deadcode
- govet
- errcheck
issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-rules: