mirror of
https://github.com/yannh/kubeconform.git
synced 2026-02-26 12:52:01 +00:00
64 lines
1.4 KiB
YAML
64 lines
1.4 KiB
YAML
# Copyright 2022 Google LLC
|
|
#
|
|
# 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.
|
|
|
|
run:
|
|
deadline: 5m
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- bodyclose
|
|
- deadcode
|
|
- depguard
|
|
- dogsled
|
|
- dupl
|
|
- errcheck
|
|
# - funlen
|
|
- gochecknoinits
|
|
- goconst
|
|
# - gocritic
|
|
# - gocyclo
|
|
- gofmt
|
|
- goimports
|
|
- golint
|
|
- gosec
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- interfacer
|
|
- lll
|
|
- misspell
|
|
- nakedret
|
|
- scopelint
|
|
- staticcheck
|
|
- structcheck
|
|
# stylecheck demands that acronyms not be treated as words
|
|
# in camelCase, so JsonOp become JSONOp, etc. Yuck.
|
|
# - stylecheck
|
|
- typecheck
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- varcheck
|
|
- whitespace
|
|
|
|
linters-settings:
|
|
dupl:
|
|
threshold: 400
|
|
lll:
|
|
line-length: 170
|
|
gocyclo:
|
|
min-complexity: 15
|
|
golint:
|
|
min-confidence: 0.85
|