-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy path.golangci.yaml
More file actions
58 lines (57 loc) · 1.37 KB
/
Copy path.golangci.yaml
File metadata and controls
58 lines (57 loc) · 1.37 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
version: "2"
run:
modules-download-mode: readonly
allow-parallel-runners: true
linters:
enable:
- revive
- govet
- staticcheck
settings:
revive:
rules:
- name: context-keys-type
- name: time-naming
- name: var-declaration
- name: unexported-return
- name: errorf
- name: blank-imports
- name: context-as-argument
- name: dot-imports
- name: error-return
- name: error-strings
- name: error-naming
- name: var-naming
arguments:
- - ID
- IP
- JSON
- URL
- HTTP
- SQL
- CPU
- URI
- [ ]
- - skipPackageNameChecks: true
- name: range
- name: receiver-naming
- name: indent-error-flow
- name: unreachable-code
staticcheck:
# Keep compatibility layers that still rely on deprecated param APIs.
# SA1019 is disabled globally until those APIs are fully removed.
checks: [ "all", "-SA1019", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022","-ST1012" ]
exclusions:
generated: lax
paths:
- examples
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- goimports
exclusions:
generated: lax
paths:
- examples