Skip to content

Commit 0dce3e3

Browse files
committed
Add .golangci.yml, compatible with latest operator-sdk
Signed-off-by: Marco Franssen <[email protected]>
1 parent a15c452 commit 0dce3e3

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

.golangci.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
version: "2"
2+
run:
3+
allow-parallel-runners: true
4+
5+
linters:
6+
default: none
7+
enable:
8+
- copyloopvar
9+
- dupl
10+
- errcheck
11+
- ginkgolinter
12+
- goconst
13+
- gocyclo
14+
- govet
15+
- ineffassign
16+
- lll
17+
- misspell
18+
- nakedret
19+
- prealloc
20+
- revive
21+
- staticcheck
22+
- unconvert
23+
- unparam
24+
- unused
25+
26+
settings:
27+
revive:
28+
rules:
29+
- name: comment-spacings
30+
- name: import-shadowing
31+
exclusions:
32+
generated: lax
33+
rules:
34+
- linters:
35+
- lll
36+
path: api/*
37+
- linters:
38+
- dupl
39+
- lll
40+
path: internal/*
41+
- linters:
42+
- misspell
43+
path: apis/fluentbit/v1alpha2/plugins/common_types.go
44+
paths:
45+
- third_party$
46+
- builtin$
47+
- examples$
48+
49+
formatters:
50+
enable:
51+
- gofmt
52+
- goimports
53+
exclusions:
54+
generated: lax
55+
paths:
56+
- third_party$
57+
- builtin$
58+
- examples$

0 commit comments

Comments
 (0)