-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
54 lines (51 loc) · 1.57 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
run:
tests: true
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/utilitywarehouse/manifest-checkers)
errcheck:
check-type-assertions: true
check-blank: true
govet:
disable:
- shadow
goconst:
min-len: 3
min-occurrences: 3
ignore-tests: true
misspell:
locale: UK
nakedret:
max-func-lines: 30
prealloc:
simple: true
range-loops: true
for-loops: true
revive:
rules:
- name: exported
disabled: true
- name: context-as-argument
disabled: false
nolintlint:
require-specific: true
linters:
enable:
- revive # Revive replaces golint
- misspell # Finds commonly misspelled English words in comments [fast: true]
- nakedret # Finds naked returns in functions greater than a specified function length [fast: true]
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases [fast: false]
- gas # Inspects source code for security problems [fast: false]
- unconvert # Remove unnecessary type conversions [fast: false]
- unparam # Reports unused function parameters [fast: false]
- prealloc # Finds slice declarations that could potentially be preallocated [fast: true]
- goimports # Goimports does everything that gofmt does. Additionally it checks unused imports [fast: true]
- gci
- gofumpt
- nolintlint
- goconst
disable:
- gosimple # Linter for Go source code that specializes in simplifying a code [fast: false]