-
Notifications
You must be signed in to change notification settings - Fork 64
/
.golangci.yml
69 lines (59 loc) · 1.15 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
run:
# Timeout for analysis
deadline: 10m
# Include test files
tests: true
# Skip directories
skip-dirs:
- iopodman
- build
- examples
- scripts
# Output configuration
output:
format: colored-line-number
# Print lines of code with issue
print-issued-lines: true
# Print linter name
print-linter-name: true
# Specific linter settings
linters-settings:
errcheck:
# Allow unchecked errors in type assertions
check-type-assertions: false
govet:
# Complain about shadowing
check-shadowing: true
settings:
shadow:
strict: false
gofmt:
# Complain about un-simplified code
simplify: true
maligned:
# Complain about non-minimized struct field alignment
suggest-new: true
linters:
disable-all: true
enable:
- goimports
- gocritic
- misspell
- govet
- ineffassign
- unconvert
- gofmt
- gosimple
- staticcheck
- asasalint
- asciicheck
- bidichk
- bodyclose
- dogsled
- durationcheck
- errchkjson
- errorlint
- exportloopref
fast: false