This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.golangci.yml
60 lines (50 loc) · 1.62 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
---
# Almost all linters; some of them are optional.
linters-settings:
cyclop:
max-complexity: 15
depguard:
rules:
main:
files:
- $all
- "!$test"
deny:
- pkg: github.com/pkg/errors
desc: use "errors" instead
goimports:
local-prefixes: github.com/percona/percona-everest-cli
unused:
check-exported: true
unparam:
check-exported: true
revive:
rules:
- name: if-return
disabled: true
gci:
sections:
- standard # Captures all standard packages if they do not match another section.
- default # Contains all imports that could not be matched to another section type.
- prefix(github.com/percona/percona-everest-cli) # Groups all local imports.
linters:
enable-all: true
disable:
- exhaustruct # not useful
- exhaustivestruct # annoying and duplicates exhaustruct
- gomnd # not useful
- goerr113 # we're using errorlint instead
- maligned # deprecated, replaced by fieldalignment. We're ok wasting a couple bytes now
- nlreturn # too many empty lines makes methods too long
- varnamelen # it's useful sometime to have a one-letter name
- wsl # too many empty lines makes methods too long
- wrapcheck # forces to wrap errors everywhere
- lll # Just useless in the most cases
- perfsprint # to keep errors consistent
issues:
exclude-use-default: false
exclude-rules:
- path: _test\.go
linters:
- funlen # tests may be long
- testpackage # senseless