forked from hashicorp/terraform-provider-azurerm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
47 lines (44 loc) · 932 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
40
41
42
43
44
45
46
47
run:
timeout: 60m
go: 1.18
modules-download-mode: vendor
skip-dirs:
- /sdk/ # Excluding sdk folders as these are externally generated
skip-files:
- ".*\\*_gen.go$"
issues:
max-per-linter: 0
max-same-issues: 0
linters:
disable-all: true
enable:
- asciicheck
- deadcode
- errcheck
- gocritic
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- nakedret
- misspell
- staticcheck
- structcheck
- typecheck
- unused
- unconvert
- unparam
- varcheck
- vet
- vetshadow
# - whitespace # Disabled for performance reasons - Ignores cache and takes 12+ minutes to run on the repo for _any_ change
linters-settings:
errcheck:
ignore: github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema:ForceNew|Set,fmt:.*,io:Close
misspell:
ignore-words:
- hdinsight
- exportfs
nakedret:
max-func-lines: 40