-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
103 lines (99 loc) · 1.91 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
#This file contains all available configuration options
# with their default values.
# options for analysis running
run:
concurrency: 1
deadline: 5m
issues-exit-code: 1
tests: false
build-tags:
- latest
skip-dirs:
- doc
- vendor
- testdata
- internal/testfuncs
- tools
- build
- log
skip-files:
- golangci.yml
- lib/bad.go
output:
format: colored-line-number,checkstyle:golangci-report.xml
print-issued-lines: true
print-linter-name: true
linters-settings:
errcheck:
check-type-assertions: true
check-blank: false
funlen:
statements: 70
lines: 70
govet:
check-shadowing: true
golint:
min-confidence: 1
gofmt:
simplify: true
goimports:
local-prefixes: github.com/astrokube/scaffolder
gocyclo:
min-complexity: 25
gocognit:
min-complexity: 55
maligned:
suggest-new: true
dupl:
threshold: 100
goconst:
min-len: 2
min-occurrences: 2
depguard:
include-go-root: false
packages:
- github.com/davecgh/go-spew/spew
misspell:
locale: US
lll:
line-length: 120
tab-width: 1
unused:
check-exported: false
unparam:
algo: cha
check-exported: false
nakedret:
max-func-lines: 50
prealloc:
simple: true
range-loops: true # Report preallocation suggestions on range loops, true by default
for-loops: false # Report preallocation suggestions on for loops, false by default
wrapcheck:
ignorePackageGlobs:
- github.com/astrokube/pathifyv2/*
issues:
exclude:
- "not declared by package utf8"
- "unicode/utf8/utf8.go"
linters:
enable-all: true
disable:
- deadcode
- maligned
- varcheck
- ifshort
- golint
- interfacer
- exhaustivestruct
- nosnakecase
- scopelint
- structcheck
- godox
- ireturn
- goerr113
- gochecknoglobals
- gochecknoinits
- wsl
- nlreturn
fast: true