mirror of
https://github.com/lukaszraczylo/kubernetes-images-sync-operator.git
synced 2026-10-12 00:45:27 +00:00
Migrate the lint config to the v2 format. Replace the deprecated scheme.Builder with runtime.NewSchemeBuilder. Handle Close errors in the worker and replace repeated strings with constants. Remove unused parameters and use switch statements where the linter asks.
52 lines
810 B
YAML
52 lines
810 B
YAML
version: "2"
|
|
run:
|
|
allow-parallel-runners: true
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- dupl
|
|
- errcheck
|
|
- ginkgolinter
|
|
- goconst
|
|
- gocyclo
|
|
- govet
|
|
- ineffassign
|
|
- misspell
|
|
- nakedret
|
|
- prealloc
|
|
- revive
|
|
- staticcheck
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
settings:
|
|
revive:
|
|
rules:
|
|
- name: comment-spacings
|
|
exclusions:
|
|
generated: lax
|
|
rules:
|
|
- linters:
|
|
- goconst
|
|
path: _test\.go
|
|
- linters:
|
|
- lll
|
|
path: api/*
|
|
- linters:
|
|
- dupl
|
|
path: internal/*
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
formatters:
|
|
enable:
|
|
- gofmt
|
|
- goimports
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|