...
1# Copyright 2019 The Kubernetes Authors.
2# SPDX-License-Identifier: Apache-2.0
3
4run:
5 deadline: 5m
6
7linters:
8 # please, do not use `enable-all`: it's deprecated and will be removed soon.
9 # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
10 disable-all: true
11 enable:
12 - bodyclose
13 - deadcode
14 - depguard
15 - dogsled
16 - dupl
17 - errcheck
18 # - funlen
19 - gochecknoinits
20 - goconst
21 - gocritic
22 - gocyclo
23 - gofmt
24 - goimports
25 - golint
26 - gosec
27 - gosimple
28 - govet
29 - ineffassign
30 - interfacer
31 - lll
32 - misspell
33 - nakedret
34 - scopelint
35 - staticcheck
36 - structcheck
37 - stylecheck
38 - typecheck
39 - unconvert
40 - unparam
41 - unused
42 - varcheck
43 - whitespace
44
45
46linters-settings:
47 dupl:
48 threshold: 400
49 lll:
50 line-length: 170
51 gocyclo:
52 min-complexity: 30
53 golint:
54 min-confidence: 0.85
View as plain text