Skip to content

Commit 8ef5e45

Browse files
authored
Merge pull request #33 from layer5io/leecalcote-patch-1
Update .golangci.yml
2 parents 9f6ee72 + d72f3f9 commit 8ef5e45

File tree

1 file changed

+2
-147
lines changed

1 file changed

+2
-147
lines changed

.golangci.yml

Lines changed: 2 additions & 147 deletions
Original file line numberDiff line numberDiff line change
@@ -1,150 +1,5 @@
1-
linters-settings:
2-
depguard:
3-
list-type: blacklist
4-
packages:
5-
# logging is allowed only by logutils.Log, logrus
6-
# is allowed to use only in logutils package
7-
- github.com/sirupsen/logrus
8-
packages-with-error-message:
9-
- github.com/sirupsen/logrus: "logging is allowed only by logutils.Log"
10-
dupl:
11-
threshold: 100
12-
exhaustive:
13-
default-signifies-exhaustive: false
14-
funlen:
15-
lines: 100
16-
statements: 50
17-
gci:
18-
local-prefixes: github.com/golangci/golangci-lint
19-
goconst:
20-
min-len: 2
21-
min-occurrences: 2
22-
gocritic:
23-
enabled-tags:
24-
- diagnostic
25-
- experimental
26-
- opinionated
27-
- performance
28-
- style
29-
disabled-checks:
30-
- dupImport # https://github.com/go-critic/go-critic/issues/845
31-
- ifElseChain
32-
- octalLiteral
33-
- whyNoLint
34-
- wrapperFunc
35-
gocyclo:
36-
min-complexity: 15
37-
goimports:
38-
local-prefixes: github.com/golangci/golangci-lint
39-
golint:
40-
min-confidence: 0
41-
gomnd:
42-
settings:
43-
mnd:
44-
# don't include the "operation" and "assign"
45-
checks: argument,case,condition,return
46-
gosec:
47-
settings:
48-
exclude: -G204
49-
govet:
50-
check-shadowing: false
51-
settings:
52-
printf:
53-
funcs:
54-
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
55-
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
56-
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
57-
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
58-
lll:
59-
line-length: 950
60-
maligned:
61-
suggest-new: true
62-
misspell:
63-
locale: US
64-
nolintlint:
65-
allow-leading-space: true # don't require machine-readable nolint directives (i.e. with no leading space)
66-
allow-unused: false # report any unused nolint directives
67-
require-explanation: false # don't require an explanation for nolint directives
68-
require-specific: false # don't require nolint directives to be specific about which linter is being skipped
69-
70-
linters:
71-
# please, do not use `enable-all`: it's deprecated and will be removed soon.
72-
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
73-
disable-all: true
74-
enable:
75-
# todo[kushthedude]: commenting most of the checks as our code can't persist all of the changes, however we can plan further on code-quality after v1.0 release.
76-
# - bodyclose
77-
# - deadcode
78-
- dogsled
79-
- errcheck
80-
# - exhaustive
81-
# - funlen
82-
# - goconst
83-
# - gocritic
84-
# - gocyclo
85-
- gofmt
86-
- goimports
87-
- golint
88-
# todo[kusthedude]: restore gosec check, once this issue is resolved https://github.com/golangci/golangci-lint/issues/177
89-
# - gosec
90-
# - gomnd
91-
# - goprintffuncname
92-
# - gosimple
93-
- govet
94-
# - ineffassign
95-
# - interfacer
96-
- lll
97-
- misspell
98-
# - nakedret
99-
# - nolintlint
100-
# - rowserrcheck
101-
# - scopelint
102-
- staticcheck
103-
# - structcheck
104-
- stylecheck
105-
- typecheck
106-
# - unconvert
107-
# - unparam
108-
# - unused
109-
# - varcheck
110-
- whitespace
111-
112-
# don't enable:
113-
# - asciicheck
114-
# - gochecknoglobals
115-
# - gocognit
116-
# - godot
117-
# - godox
118-
# - goerr113
119-
# - maligned
120-
# - nestif
121-
# - prealloc
122-
# - testpackage
123-
# - wsl
124-
125-
issues:
126-
# Excluding configuration per-path, per-linter, per-text and per-source
127-
exclude-rules:
128-
- path: _test\.go
129-
linters:
130-
- gomnd
131-
132-
# https://github.com/go-critic/go-critic/issues/926
133-
- linters:
134-
- gocritic
135-
text: "unnecessaryDefer:"
136-
1371
run:
138-
skip-dirs:
139-
- test/testdata_etc
140-
- internal/cache
141-
- internal/renameio
142-
- internal/robustio
1432
timeout: 5m
1443

145-
# golangci.com configuration
146-
# https://github.com/golangci/golangci/wiki/Configuration
147-
service:
148-
golangci-lint-version: 1.23.x # use the fixed version to not introduce new linters unexpectedly
149-
prepare:
150-
- echo "here I can run custom commands, but no preparation needed for this repo"
4+
issues:
5+
exclude-files:

0 commit comments

Comments
 (0)