-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy path.golangci.yml
More file actions
34 lines (32 loc) · 824 Bytes
/
.golangci.yml
File metadata and controls
34 lines (32 loc) · 824 Bytes
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
version: "2"
# all available settings of specific linters
linters:
default: none
enable:
- errcheck
- ineffassign
- misspell
- staticcheck
- unconvert
- unused
- govet
settings:
errcheck:
exclude-functions:
- "(*github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.ResourceData).Set"
exclusions:
rules:
- text: "GetOkExists"
linters:
- staticcheck
- # ST1005: Error strings should not end with punctuation or newlines
# Disabled for Terraform provider error messages which are user-facing
# and benefit from proper punctuation for better readability
text: "ST1005"
path: "internal/(mackerel|provider)/.*"
linters:
- staticcheck
formatters:
enable:
- gofmt
- goimports