-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
66 lines (61 loc) · 1.52 KB
/
.golangci.yaml
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
run:
timeout: 3m
linters:
disable-all: true
# Enable specific linter
# https://golangci-lint.run/usage/linters/#enabled-by-default
enable:
# go install github.com/mgechev/revive@latest
- revive
- errcheck
- gosimple
disable:
- typecheck
- unused
- staticcheck
- ineffassign
- govet
- unparam
- mnd
issues:
# Maximum count of issues with the same text.
# Set to 0 to disable.
# Default: 3
max-same-issues: 50
linters-settings:
# https://golangci-lint.run/usage/linters/#revive
revive:
max-open-files: 100
rules:
- name: package-comments
disabled: true
- name: line-length-limit
disabled: true
arguments: [100]
- name: blank-imports
- name: confusing-naming
- name: confusing-results
- name: context-as-argument
arguments:
- allowTypesBefore: '*testing.T,*github.com/user/repo/testing.Harness'
- name: context-keys-type
- name: defer
- name: early-return
- name: empty-block
- name: empty-lines
- name: error-naming
- name: error-return
- name: error-strings
- name: errorf
- name: identical-branches
- name: if-return
- name: increment-decrement
- name: indent-error-flow
- name: redefines-builtin-id
- name: receiver-naming
- name: unexported-naming
- name: unexported-return
- name: unreachable-code
- name: unused-parameter
- name: superfluous-else
- name: time-equal