mirror of
https://github.com/YuzuZensai/netbird-kubernetes-operator.git
synced 2026-09-13 10:49:15 +00:00
This change updates Golang CI Lint to the latest version and fixes new linter errors that came along with the update. These changes were split out of #112 and are required to update the Go version.
54 lines
909 B
YAML
54 lines
909 B
YAML
version: "2"
|
|
run:
|
|
allow-parallel-runners: true
|
|
linters:
|
|
default: none
|
|
enable:
|
|
- copyloopvar
|
|
- dupl
|
|
- errcheck
|
|
- ginkgolinter
|
|
- goconst
|
|
- gocyclo
|
|
- govet
|
|
- ineffassign
|
|
- lll
|
|
- misspell
|
|
- nakedret
|
|
- prealloc
|
|
- revive
|
|
- staticcheck
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
settings:
|
|
revive:
|
|
rules:
|
|
- name: comment-spacings
|
|
staticcheck:
|
|
checks: ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-QF1008"]
|
|
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$
|