-
Notifications
You must be signed in to change notification settings - Fork 116
/
.golangci.yml
63 lines (58 loc) · 1.51 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
run:
deadline: 5m
modules-download-mode: vendor
allow-parallel-runners: true
skip_dirs:
- scripts
- vendor
- version
- examples
- docs
- templates
- yandex/mocks
- yandex/test-fixtures
output:
format: colored-line-number
severity:
default-severity: WARNING
linters:
disable-all: true
enable:
- errcheck
- gofmt
- gosimple
- ineffassign
- misspell
- staticcheck
- unconvert
- unused
- vet
- govet
linters-settings:
errcheck:
ignore: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema:ForceNew|Set,fmt:.*,io:Close,github.com/yandex-cloud/terraform-provider-yandex/yandex:Set
govet:
disable:
- copylocks
issues:
new-from-rev: master # Analyse only differense between master->${git branch git branch --show-current}
max-same-issues: 0
exclude-rules:
- linters:
- staticcheck
text: "SA1019:" # Using a deprecated function, variable, constant or field
- linters:
- staticcheck
text: "SA4010:" # The result of append will never be observed anywhere
- linters:
- staticcheck
text: "SA4030:" # Ineffective attempt at generating random number
- linters:
- staticcheck
text: "SA1024:" # A string cutset contains duplicate characters
- linters:
- staticcheck
text: "SA4004:" # The loop exits unconditionally after one iteration
- linters:
- staticcheck
text: "SA4009" # A function argument is overwritten before its first use