-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
91 lines (88 loc) · 2.05 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
run:
timeout: 5m
modules-download-mode: readonly
skip-dirs-use-default: true
issues:
# Enable all checks (which was as default disabled e.g. comments).
exclude-use-default: false
# Value 0 means show all.
max-issues-per-linter: 0
max-same-issues: 0
exclude-dirs:
- scripts
- test
linters-settings:
revive:
rules:
- name: package-comments
disabled: true
goimports:
# Put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes.
local-prefixes: github.com/nieomylnieja/gitsync
govet:
# False positives and reporting on error shadowing (which is intended).
# Quoting Robi Pike:
# The shadow code is marked experimental.
# It has too many false positives to be enabled by default, so this is not entirely unexpected,
# but don't expect a fix soon. The right way to detect shadowing without flow analysis is elusive.
# Few years later (comment from 2015) and the Shadow analyer is still experimental...
check-shadowing: false
lll:
line-length: 120
gocritic:
enabled-tags:
- opinionated
exhaustive:
default-signifies-exhaustive: true
errcheck:
exclude-functions:
- Body.Close()
misspell:
locale: US
linters:
disable-all: true
enable:
# All linters from list https://golangci-lint.run/usage/linters/ are speciefed here and explicit enable/disable.
- asasalint
- asciicheck
- bodyclose
- errcheck
- exhaustive
- exportloopref
- gocheckcompilerdirectives
- gochecknoinits
- gocritic
- godot
- gofmt
- goheader
- goimports
- goprintffuncname
- gosimple
- govet
- importas
- ireturn
- ineffassign
- lll
- makezero
- mirror
- misspell
- nakedret
- nilerr
- nilnil
- prealloc
- predeclared
- revive
- rowserrcheck
- sloglint
- staticcheck
- tenv
- testifylint
- thelper
- tparallel
- typecheck
- unconvert
- unparam
- unused
- wastedassign
- whitespace