Skip to content

Commit

Permalink
adjust linter settings
Browse files Browse the repository at this point in the history
  • Loading branch information
dprotaso committed Dec 21, 2024
1 parent e974e9d commit 4be9c26
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
run:
timeout: 5m
timeout: 10m
allow-parallel-runners: true

build-tags:
- e2e
Expand All @@ -8,14 +9,21 @@ run:
- preupgrade
- postupgrade
- postdowngrade
- istio

skip-dirs:
exclude-dirs:
- pkg/client

skip-files:
exclude-files:
- ".pb.go$"

output:
uniq-by-line: true
sort-results: true
sort-order:
- linter
- file
show-stats: true

linters:
enable:
- asciicheck
Expand All @@ -30,12 +38,21 @@ linters:
disable:
- errcheck

linters-settings:
revive:
rules:
# use unparam linter instead - defaults are better
- name: unused-parameter
disabled: true

issues:
exclude-rules:
- path: test # Excludes /test, *_test.go etc.
linters:
- gosec
- unparam
- noctx
- dot-imports

# Allow source and sink receivers in conversion code for clarity.
- path: _conversion\.go
Expand Down

0 comments on commit 4be9c26

Please sign in to comment.