Skip to content

Commit

Permalink
chore: update linter config
Browse files Browse the repository at this point in the history
  • Loading branch information
gchiesa committed Oct 21, 2024
1 parent 10f6cad commit 2556554
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .golang-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@ run:
tests: false
timeout: 240s
skip-dirs-use-default: true
skip-dirs:
- ^vendor$
- ^go/pkg/mod/*
- ../../../../go/pkg/mod/*
- ../../../../.gobrew/*
- .*_test\.go$
skip-files:
- .*\.pb\.go
- .*_generated\.go
linters-settings:
depguard:
rules:
Expand All @@ -22,7 +13,7 @@ linters-settings:
- pkg: "notexist"
desc: "notexist is not allowed or blacklisted"
govet:
check-shadowing: true
check-shadowing: false
gocyclo:
min-complexity: 15
maligned:
Expand Down Expand Up @@ -66,7 +57,7 @@ linters:
- gosec
- gosimple
- nakedret
- exportloopref
- copyloopvar
- staticcheck
- stylecheck
- typecheck
Expand All @@ -79,6 +70,15 @@ linters:
issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-files:
- .*\.pb\.go
- .*_generated\.go
exclude-dirs:
- ^vendor$
- ^go/pkg/mod/*
- ../../../../go/pkg/mod/*
- ../../../../.gobrew/*
- .*_test\.go$
exclude-rules:
- linters:
- gosec
Expand All @@ -103,4 +103,6 @@ issues:
- gosec
text: G204
output:
format: line-number
formats:
- format: colored-line-number
path: stdout

0 comments on commit 2556554

Please sign in to comment.