forked from foundriesio/fioctl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
38 lines (37 loc) · 902 Bytes
/
.golangci.yml
File metadata and controls
38 lines (37 loc) · 902 Bytes
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
version: "2"
run:
timeout: 5m
allow-parallel-runners: true
linters:
enable:
- dupl
- errcheck
- gocyclo
- govet
- ineffassign
- staticcheck
- unparam
- unused
- misspell
- unconvert
exclusions:
presets:
- common-false-positives
- std-error-handling
rules:
- linters:
- staticcheck
text: "ST1005: error strings should not" # We use punctuation and capital letters in errors
- linters:
- staticcheck
text: "QF1003: could use tagged switch" # Using if statements is as good.
- linters:
- staticcheck
text: "ST1023: should omit type" # We explicitly declare inferred types sometimes.
- linters:
- staticcheck
text: "QF1011: could omit type" # Same as above; no idea why two checks for the same.
formatters:
enable:
- gofmt
- goimports