62 lines
1.0 KiB
YAML
62 lines
1.0 KiB
YAML
version: "2"
|
|
run:
|
|
allow-parallel-runners: true
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- copyloopvar
|
|
- dupl
|
|
- errcheck
|
|
- ginkgolinter
|
|
- goconst
|
|
- gocyclo
|
|
- govet
|
|
- ineffassign
|
|
- lll
|
|
- modernize
|
|
- misspell
|
|
- nakedret
|
|
- prealloc
|
|
- revive
|
|
- staticcheck
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- logcheck
|
|
settings:
|
|
custom:
|
|
logcheck:
|
|
type: "module"
|
|
description: Checks Go logging calls for Kubernetes logging conventions.
|
|
revive:
|
|
rules:
|
|
- name: comment-spacings
|
|
- name: import-shadowing
|
|
modernize:
|
|
disable:
|
|
- omitzero
|
|
exclusions:
|
|
generated: lax
|
|
rules:
|
|
- linters:
|
|
- lll
|
|
path: api/*
|
|
- linters:
|
|
- dupl
|
|
- lll
|
|
path: internal/*
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
- goimports
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|