forked from pixie-io/pixie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yaml
49 lines (45 loc) · 905 Bytes
/
.golangci.yaml
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
---
run:
# Tell golangci-lint to not acquire a lock because
# arcanist will run multiple instances in parallel.
allow-parallel-runners: true
output:
sort-results: true
issues:
max-issues-per-linter: 0
max-same-issues: 0
linters:
enable:
- asciicheck
- deadcode
- errcheck
- gosimple
- ineffassign
- makezero
- misspell
- nakedret
- nolintlint
- predeclared
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
- wastedassign
- whitespace
disable:
# We run goimports which includes gofmt.
- gofmt
# The following linters are run separately by arcanist at the moment.
# This is because we have autofix hooks for these linters.
- goimports
- golint
- govet
disable-all: false
linters-settings:
errcheck:
ignore: github.com/spf13/viper:BindPFlag
goimports:
local-prefixes: pixielabs.ai
nakedret:
max-func-lines: 0