...
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 - depguard
14 - dogsled
15 - dupl
16 - errcheck
17 - exportloopref
18 - gochecknoinits
19 - goconst
20 - gocritic
21 - gocyclo
22 - gofmt
23 - goimports
24 - gosec
25 - gosimple
26 - govet
27 - ineffassign
28 # - interfacer
29 - lll
30 - misspell
31 - nakedret
32 - staticcheck
33 - stylecheck
34 - revive
35 - typecheck
36 - unconvert
37 - unparam
38 - unused
39 - whitespace
40
41
42linters-settings:
43 dupl:
44 threshold: 400
45 lll:
46 line-length: 170
47 gocyclo:
48 min-complexity: 30
49
50issues:
51 # List of regexps of issue texts to exclude, empty list by default.
52 # But independently from this option we use default exclude patterns,
53 # it can be disabled by `exclude-use-default: false`. To list all
54 # excluded by default patterns execute `golangci-lint run --help`
55 exclude:
56 - Using the variable on range scope `tc` in function literal
View as plain text