forked from yandex-cloud/terraform-provider-yandex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
74 lines (69 loc) · 1.9 KB
/
.golangci.yml
File metadata and controls
74 lines (69 loc) · 1.9 KB
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
version: 2
run:
modules-download-mode: vendor
allow-parallel-runners: true
output:
formats:
text:
path: stdout
colors: true
severity:
default: WARNING
linters:
settings:
errcheck:
exclude-functions:
- 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
exclusions:
rules:
- linters:
- gosimple
text: "S1009:" # should omit nil check; len() for nil slices is defined as zero
- linters:
- staticcheck
text: "SA1006:" # printf-style function with dynamic format string and no further arguments should use print-style function instead
- 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
paths:
- scripts
- vendor
- version
- examples
- docs
- templates
- yandex/mocks
- yandex/test-fixtures
default: none
enable:
- errcheck
- ineffassign
- misspell
- staticcheck
- unconvert
- unused
- govet
formatters:
enable:
- gofmt
issues:
# new-from-rev: trunk # Analyse only differense between master->${git branch git branch --show-current}
max-same-issues: 0