-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
67 lines (60 loc) · 1.36 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
run:
tests: true
build-tags:
- integration
linters:
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- dogsled
- durationcheck
- errcheck
- copyloopvar
- gci
- gochecknoinits
- goconst
- gocritic
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- prealloc
- revive
- staticcheck
- stylecheck
- tparallel
- typecheck
- unconvert
- unparam
- unused
issues:
# Fix found issues (if it's supported by the linter).
fix: true
exclude-files:
- ".*_gen.go$"
# output configuration options
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
formats: colored-line-number
# print lines of code with issue, default is true
print-issued-lines: true
# print linter name in the end of issue text, default is true
print-linter-name: true
linters-settings:
gofmt:
simplify: true
goimports:
local-prefixes: github.com/alessio-perugini/f1calendarbot
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/alessio-perugini/f1calendarbot)
section-separators:
- newLine