git.sr.ht/~pingoo/stdx@v0.0.0-20240218134121-094174641f6e/cobra/.golangci.yml (about)

     1  # Copyright 2013-2022 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  
    15  run:
    16    deadline: 5m
    17  
    18  linters:
    19    disable-all: true
    20    enable:
    21      #- bodyclose
    22      - deadcode
    23      #- depguard
    24      #- dogsled
    25      #- dupl
    26      - errcheck
    27      #- exhaustive
    28      #- funlen
    29      - gas
    30      #- gochecknoinits
    31      - goconst
    32      #- gocritic
    33      #- gocyclo
    34      #- gofmt
    35      - goimports
    36      - golint
    37      #- gomnd
    38      #- goprintffuncname
    39      #- gosec
    40      #- gosimple
    41      - govet
    42      - ineffassign
    43      - interfacer
    44      #- lll
    45      - maligned
    46      - megacheck
    47      #- misspell
    48      #- nakedret
    49      #- noctx
    50      #- nolintlint
    51      #- rowserrcheck
    52      #- scopelint
    53      #- staticcheck
    54      - structcheck
    55      #- stylecheck
    56      #- typecheck
    57      - unconvert
    58      #- unparam
    59      #- unused
    60      - varcheck
    61      #- whitespace
    62    fast: false