generated from hashicorp/packer-plugin-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 95
/
.golangci.yml
42 lines (36 loc) · 858 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
# Copyright (c) HashiCorp, Inc.
# 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: "SA1006|SA1019|SA4006|SA4010|SA4017|SA5007|SA6005|SA9004"
# Exclude line length linter for generated files.
- linters: [lll]
source: "^//go:generate "
linters:
disable-all: true
enable:
- errcheck
- goimports
- gosimple
- govet
- ineffassign
- staticcheck
- unconvert
- unused
run:
concurrency: 4
timeout: 10m
exclude-files:
- ".*\\.hcl2spec\\.go$"
output:
formats:
- format: colored-line-number
linters-settings:
errcheck:
exclude-functions:
- "fmt:.*"
- "io:Close"