forked from hashicorp/terraform-provider-azurerm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
52 lines (48 loc) · 1.06 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
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
run:
timeout: 60m
go: 1.19
modules-download-mode: vendor
skip-dirs:
- /sdk/ # Excluding sdk folders as these are externally generated
skip-files:
- "internal/services/.*/.*_gen.go$"
issues:
max-per-linter: 0
max-same-issues: 0
linters:
disable-all: true
enable:
- asciicheck
- bidichk
- errcheck
- gocritic
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- nakedret
- misspell
#- nolintlint
#- nlreturn
- reassign
- staticcheck
- typecheck
- unused
- unconvert
- unparam
- vet
- vetshadow
# - wastedassign # disabled because of generics
# - 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