-
Notifications
You must be signed in to change notification settings - Fork 27
/
.golangci.yml
42 lines (36 loc) · 933 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
# © 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:
exclude-rules:
# Exclude staticcheck for some rules.
- linters: [staticcheck]
text: "G115|G402|G404|GetOkExists|SA1006|SA1019|SA4004|SA4006|SA4010|SA4017|SA5007|SA6005|SA9004"
linters:
disable-all: true
enable:
- errcheck
- gofmt
- goimports
- gosimple
- gosec
- govet
- ineffassign
- misspell
- revive
- staticcheck
- unconvert
- unused
run:
deadline: 30m
output:
formats:
- format: colored-line-number
linters-settings:
errcheck:
exclude-functions:
- "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema:ForceNew|Set"
- "fmt:.*"
- "io:Close"