2023-03-06 02:28:31 +00:00
|
|
|
# Copyright 2013-2023 The Cobra Authors
|
2022-09-16 11:55:56 +00:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2021-02-08 00:08:50 +00:00
|
|
|
run:
|
|
|
|
deadline: 5m
|
|
|
|
|
|
|
|
linters:
|
2022-08-22 00:49:19 +00:00
|
|
|
fast: false
|
2021-02-08 00:08:50 +00:00
|
|
|
disable-all: true
|
|
|
|
enable:
|
2022-08-22 00:49:19 +00:00
|
|
|
# Enabled by Default
|
2023-07-18 13:51:36 +00:00
|
|
|
# - deadcode ! deprecated since v1.49.0; replaced by 'unused'
|
2022-08-22 00:49:19 +00:00
|
|
|
- errcheck
|
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
|
|
|
- staticcheck
|
|
|
|
- typecheck
|
|
|
|
- unused
|
|
|
|
# - varcheck ! deprecated since v1.49.0; replaced by 'unused'
|
|
|
|
# Disabled by Default
|
|
|
|
#- asasalint
|
|
|
|
#- asciicheck
|
|
|
|
#- bidichk
|
|
|
|
#- bodyclose
|
|
|
|
#- containedctx
|
|
|
|
#- contextcheck
|
|
|
|
#- cyclop
|
|
|
|
#- decorder
|
2021-02-08 00:08:50 +00:00
|
|
|
#- depguard
|
|
|
|
#- dogsled
|
|
|
|
#- dupl
|
2022-08-22 00:49:19 +00:00
|
|
|
#- durationcheck
|
|
|
|
#- errchkjson
|
|
|
|
#- errname
|
|
|
|
#- errorlint
|
|
|
|
#- execinquery
|
2021-02-08 00:08:50 +00:00
|
|
|
#- exhaustive
|
2022-08-22 00:49:19 +00:00
|
|
|
#- exhaustivestruct !
|
|
|
|
#- exhaustruct
|
|
|
|
#- exportloopref
|
|
|
|
#- forbidigo
|
|
|
|
#- forcetypeassert
|
2021-02-08 00:08:50 +00:00
|
|
|
#- funlen
|
|
|
|
- gas
|
2022-08-22 00:49:19 +00:00
|
|
|
#- gci
|
|
|
|
#- gochecknoglobals
|
2021-02-08 00:08:50 +00:00
|
|
|
#- gochecknoinits
|
2022-08-22 00:49:19 +00:00
|
|
|
#- gocognit
|
2021-02-08 00:08:50 +00:00
|
|
|
- goconst
|
|
|
|
#- gocritic
|
|
|
|
#- gocyclo
|
2022-08-22 00:49:19 +00:00
|
|
|
#- godot
|
|
|
|
#- godox
|
|
|
|
#- goerr113
|
2022-08-22 00:30:49 +00:00
|
|
|
- gofmt
|
2022-08-22 00:49:19 +00:00
|
|
|
#- gofumpt
|
|
|
|
#- goheader
|
2021-02-08 00:08:50 +00:00
|
|
|
- goimports
|
2022-08-22 00:54:08 +00:00
|
|
|
#- golint ! Use revive instead
|
2021-02-08 00:08:50 +00:00
|
|
|
#- gomnd
|
2022-08-22 00:49:19 +00:00
|
|
|
#- gomoddirectives
|
|
|
|
#- gomodguard
|
2021-02-08 00:08:50 +00:00
|
|
|
#- goprintffuncname
|
|
|
|
#- gosec
|
2022-08-22 00:49:19 +00:00
|
|
|
#- grouper
|
|
|
|
#- ifshort !
|
|
|
|
#- importas
|
|
|
|
- interfacer # !
|
|
|
|
#- ireturn
|
2021-02-08 00:08:50 +00:00
|
|
|
#- lll
|
2022-08-22 00:49:19 +00:00
|
|
|
#- maintidx
|
|
|
|
#- makezero
|
|
|
|
- maligned # !
|
2021-02-08 00:08:50 +00:00
|
|
|
- megacheck
|
|
|
|
#- misspell
|
|
|
|
#- nakedret
|
2022-08-22 00:49:19 +00:00
|
|
|
#- nestif
|
|
|
|
#- nilerr
|
|
|
|
#- nilnil
|
|
|
|
#- nlreturn
|
2021-02-08 00:08:50 +00:00
|
|
|
#- noctx
|
|
|
|
#- nolintlint
|
2022-08-22 00:49:19 +00:00
|
|
|
#- nonamedreturns
|
|
|
|
#- nosnakecase !
|
|
|
|
#- nosprintfhostport
|
|
|
|
#- paralleltest
|
|
|
|
#- prealloc
|
|
|
|
#- predeclared
|
|
|
|
#- promlinter
|
2022-08-22 00:54:08 +00:00
|
|
|
- revive
|
2021-02-08 00:08:50 +00:00
|
|
|
#- rowserrcheck
|
2022-08-22 00:49:19 +00:00
|
|
|
#- scopelint !
|
|
|
|
#- sqlclosecheck
|
2023-07-18 13:51:36 +00:00
|
|
|
#- structcheck ! deprecated since v1.49.0; replaced by 'unused'
|
2021-02-08 00:08:50 +00:00
|
|
|
#- stylecheck
|
2022-08-22 00:49:19 +00:00
|
|
|
#- tagliatelle
|
|
|
|
#- tenv
|
|
|
|
#- testpackage
|
|
|
|
#- thelper
|
|
|
|
#- tparallel
|
2021-02-08 00:08:50 +00:00
|
|
|
- unconvert
|
|
|
|
#- unparam
|
2022-08-22 00:49:19 +00:00
|
|
|
#- usestdlibvars
|
|
|
|
#- varnamelen
|
|
|
|
#- wastedassign
|
2021-02-08 00:08:50 +00:00
|
|
|
#- whitespace
|
2022-08-22 00:49:19 +00:00
|
|
|
#- wrapcheck
|
|
|
|
#- wsl
|