1# Copyright 2013-2023 The Cobra Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15run:
16 deadline: 5m
17
18linters:
19 disable-all: true
20 enable:
21 #- bodyclose
22 # - deadcode ! deprecated since v1.49.0; replaced by 'unused'
23 #- depguard
24 #- dogsled
25 #- dupl
26 - errcheck
27 #- exhaustive
28 #- funlen
29 #- gochecknoinits
30 - goconst
31 - gocritic
32 #- gocyclo
33 - gofmt
34 - goimports
35 #- gomnd
36 #- goprintffuncname
37 - gosec
38 - gosimple
39 - govet
40 - ineffassign
41 #- lll
42 - misspell
43 #- nakedret
44 #- noctx
45 - nolintlint
46 #- rowserrcheck
47 #- scopelint
48 - staticcheck
49 #- structcheck ! deprecated since v1.49.0; replaced by 'unused'
50 - stylecheck
51 #- typecheck
52 - unconvert
53 #- unparam
54 - unused
55 # - varcheck ! deprecated since v1.49.0; replaced by 'unused'
56 #- whitespace
57 fast: false