forked from kubeflow/mxnet-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
linter_config.yaml
50 lines (42 loc) · 1.26 KB
/
linter_config.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
# This file contains golangci-lint configurations
run:
# default concurrency is a available CPU number
concurrency: 4
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 300s
# exit code when at least one issue was found, default is 1
issues-exit-code: 1
# include test files or not, default is true
tests: true
# which dirs to skip: issues from them won't be reported;
# skip-dirs:
# - pkg/client
# - pkg/apis/mxnet/v1beta1/zz_generated.deepcopy.go
# - pkg/apis/mxnet/v1beta1/zz_generated.defaults.go
# default is true. Enables skipping of directories:
# vendor$, third_party$, testdata$, examples$, Godeps$, builtin$
skip-dirs-use-default: true
linters:
# please, do not use `enable-all`: it's deprecated and will be removed soon.
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
disable-all: true
enable:
- bodyclose
- deadcode
- errcheck
- misspell
- lll
- typecheck
- unconvert
- unused
- varcheck
- govet
- staticcheck
linters-settings:
lll:
# max line length, lines longer will be reported. Default is 120.
line-length: 240
#
# "redundant return statement",
# "comment or be unexported",
# "comment on exported",