forked from pixie-io/pixie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
57 lines (53 loc) · 1.45 KB
/
.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
50
51
52
53
54
55
56
57
---
run:
# Tell golangci-lint to not acquire a lock because
# arcanist will run multiple instances in parallel.
allow-parallel-runners: true
# arcanist runs many of these in parallel causing
# CPU contention and longer runtimes.
timeout: 3m
output:
sort-results: true
issues:
max-issues-per-linter: 0
max-same-issues: 0
linters:
enable:
- asciicheck
- deadcode
- errcheck
# Although goimports includes gofmt, it doesn't support the simplify option.
# So we include gofmt here.
- gofmt
- gosimple
- ineffassign
- makezero
- misspell
- nakedret
- nolintlint
- nonamedreturns
- predeclared
- staticcheck
# https://github.com/golangci/golangci-lint/issues/2649
# - structcheck
- typecheck
- unused
- varcheck
# https://github.com/golangci/golangci-lint/issues/2649
# - wastedassign
- whitespace
disable:
# 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:
# yamllint disable-line rule:line-length
ignore: io:Close,github.com/fatih/color,github.com/spf13/pflag:MarkHidden,github.com/spf13/viper:(BindEnv|BindPFlag),github.com/spf13/cobra:(Help|MarkFlagRequired|Usage),gopkg.in/segmentio/analytics-go.v3:Enqueue,database/sql:Rollback,github.com/nats-io/nats.go:Unsubscribe
goimports:
local-prefixes: px.dev
nakedret:
max-func-lines: 0