forked from digitalocean/terraform-provider-digitalocean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
39 lines (36 loc) · 774 Bytes
/
.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
run:
timeout: 60m
modules-download-mode: vendor
issues:
max-per-linter: 0
max-same-issues: 0
exclude-rules:
#TODO: Enable failing gosimple checks
- linters:
- gosimple
text: "S(1007|1034|1039)"
# TODO: Enable failing staticchecks
- linters:
- staticcheck
text: "SA(1006|1019|4006|6005):"
linters:
disable-all: true
enable:
- gofmt
- goimports
- govet
- typecheck
- unconvert
- varcheck
- staticcheck
- gosimple
# TODO: Enable addition linters
# - deadcode
# - errcheck
# - ineffassign
# - unused
linters-settings:
errcheck:
ignore: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema:ForceNew|Set,fmt:.*,io:Close
nakedret:
max-func-lines: 40