-
Notifications
You must be signed in to change notification settings - Fork 92
/
.golangci.yml
49 lines (44 loc) · 1.05 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
# © Broadcom. All Rights Reserved.
# The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
# SPDX-License-Identifier: MPL-2.0
# For more information about the golangci-lint configuration file, refer to:
# https://golangci-lint.run/usage/configuration/
issues:
max-per-linter: 0
max-same-issues: 0
exclude-rules:
# Exclude errcheck for some rules.
- linters: [errcheck]
text: "Error return value of `d.Set` is not checked"
# Exclude revive for some rules.
- linters:
- revive
text: 'redefines-builtin-id: redefinition of the built-in'
run:
deadline: 5m
linters:
disable-all: true
enable:
- durationcheck
- errcheck
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- makezero
- misspell
- nakedret
- revive
- staticcheck
- tenv
- typecheck
- unconvert
- unused
- govet
linters-settings:
errcheck:
exclude-functions:
- "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema:ForceNew|Set"
- "fmt:.*"
- "io:Close"