forked from hashicorp/nomad-pack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
47 lines (43 loc) · 824 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
43
44
45
46
47
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
run:
deadline: 10m
tests: true
# Output configuration options.
output:
format: colored-line-number
print-issued-lines: true
print-linter-name: true
# All available settings of specific linters.
linters-settings:
errcheck:
check-type-assertions: true
govet:
check-shadowing: true
gofmt:
simplify: true
staticcheck:
checks: [ "all","-ST1000" ]
linters:
disable-all: true
enable:
- goimports
- gocritic
- misspell
- govet
- ineffassign
- unconvert
- gofmt
- gosimple
- staticcheck
- asasalint
- asciicheck
- bidichk
- bodyclose
- dogsled
- durationcheck
# - errchkjson (todo)
# - errorlint (todo)
- exportloopref
- usestdlibvars
fast: false