Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update linter file config #158

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions .github/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,24 @@ run:
timeout: 5m

linters-settings:
dupl:
threshold: 100
goimports:
local-prefixes: github.com/newrelic/nri-kube-events
gocyclo:
min-complexity: 20
golint:
min-confidence: 0.8
govet:
shadow: true
maligned:
suggest-new: true
enable:
- shadow
- fieldalignment
misspell:
locale: US
nolintlint:
allow-leading-space: true # don't require machine-readable nolint directives (i.e. with no leading space)
allow-unused: false # report any unused nolint directives
require-explanation: false # don't require an explanation for nolint directives
require-specific: false # don't require nolint directives to be specific about which linter is being skipped

linters:
disable-all: true
enable:
- bodyclose
- copyloopvar
- dogsled
- errcheck
- errorlint
- exhaustive
#- exportloopref Since Go1.22 (loopvar) this linter is no longer relevant.
- copyloopvar
- gocyclo
- goprintffuncname
- gosimple
Expand Down
Loading