-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.yml
112 lines (109 loc) · 1.97 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
run:
timeout: 5m
build-tags:
- acceptance
linters:
presets:
- bugs
- comment
- complexity
- error
- format
- import
- metalinter
- module
- performance
# - sql
- style
- test
- unused
disable:
- cyclop
- depguard
- err113 # TODO: turn on and fix
- errorlint # TODO: turn on and fix
- exhaustive
- exhaustruct
- gci
- godox
- gomoddirectives # TODO: remove when go-rpm is updated.
- mnd
- musttag
- nonamedreturns
- nlreturn
- paralleltest
- varnamelen
- wrapcheck
- wsl
linters-settings:
gofmt:
rewrite-rules:
- pattern: interface{}
replacement: any
gofumpt:
extra-rules: true
goimports:
local-prefixes: github.com/kubri/kubri
gomodguard:
blocked:
modules:
- encoding/json:
recommendations:
- github.com/goccy/go-json
- github.com/pkg/errors:
recommendations:
- errors
gosec:
excludes:
- G107
- G204
- G401
- G501
- G505
govet:
enable-all: true
disable:
- fieldalignment
ireturn:
allow:
- error
- generic
- stdlib
- github.com/google/go-cmp/cmp.Option
- github.com/kubri/kubri/target.Target
nolintlint:
require-specific: true
tagliatelle:
case:
use-field-name: true
rules:
yaml: kebab
deb: header
tagalign:
order:
- yaml
- validate
- jsonschema
issues:
fix: true
exclude-rules:
- path: (.+)_test.go
linters:
- contextcheck
- cyclop
- errcheck
- funlen
- gocognit
- goconst
- gosec
- lll
- maintidx
- linters:
- govet
text: 'shadow: declaration of "err" shadows declaration'
- linters:
- staticcheck
text: 'SA1019: "crypto/dsa" has been deprecated'
- linters:
- lll
source: '^\s*//'