Repository navigation
Expand file tree
/
Copy path.golangci.yml
More file actions
132 lines (132 loc) · 2.91 KB
/
Copy path.golangci.yml
File metadata and controls
132 lines (132 loc) · 2.91 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: "2"
run:
tests: true
linters:
enable:
- asciicheck
- bodyclose
- dupl
- gocritic
- importas
- misspell
- nakedret
- prealloc
- revive
- unconvert
- unparam
settings:
staticcheck:
checks:
- all
- -ST1000
- -ST1003
- -ST1016
- -ST1020
- -ST1021
- -ST1022
- -QF1012
decorder:
dec-order:
- type
- const
- var
- func
disable-dec-order-check: false
dupl:
threshold: 500
errcheck:
check-blank: false
gocritic:
disabled-checks:
- commentFormatting
- deprecatedComment
govet:
disable:
- fieldalignment
- shadow
- inline
enable-all: true
revive:
enable-all-rules: true
rules:
- name: cyclomatic
disabled: true
- name: argument-limit
disabled: true
- name: function-length
disabled: true
- name: function-result-limit
disabled: true
- name: line-length-limit
disabled: true
- name: file-header
disabled: true
- name: cognitive-complexity
disabled: true
- name: banned-characters
disabled: true
- name: max-public-structs
disabled: true
- name: add-constant
disabled: true
- name: unhandled-error
disabled: true
- name: deep-exit
disabled: true
- name: nested-structs
disabled: true
- name: import-alias-naming
disabled: true
- name: unchecked-type-assertion
disabled: true
- name: unnecessary-format
disabled: true
- name: var-naming
disabled: true
- name: enforce-switch-style
disabled: true
- name: identical-switch-branches
disabled: true
- name: use-waitgroup-go
disabled: true
- name: package-naming
disabled: true
- name: multiline-if-init
disabled: true
- name: marshal-receiver
disabled: true
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
rules:
- path: (serve/(plugin|discovery_test)|internal/servers/discovery/v0/discovery(_test)?)\.go
linters:
- staticcheck
text: "SA1019: github.com/cloudquery/plugin-pb-go/pb/discovery/v0 is deprecated"
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- gofmt
settings:
gofmt:
rewrite-rules:
- pattern: interface{}
replacement: any
- pattern: a[b:len(a)]
replacement: a[b:]
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$