Skip to content

Commit

Permalink
chore: refactor file exclusion settings and add issues section
Browse files Browse the repository at this point in the history
- Remove the `skip-dirs` and `skip-files` settings
- Add `issues` section with `exclude-dirs`, `exclude-files`, and `exclude-rules` settings

Signed-off-by: ysicing <[email protected]>
  • Loading branch information
ysicing committed Apr 26, 2024
1 parent bee0800 commit a87dcfe
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
run:
timeout: 5m
skip-dirs-use-default: false
skip-dirs:
- hack/bin
- testdata$
- examples$
- internal/static
skip-files:
- "zz_*"
- ".*test.go"
modules-download-mode: readonly
allow-parallel-runners: true

Expand All @@ -34,9 +25,23 @@ linters-settings:
goheader:
template-path: .go-header.txt
revive:
ignore-generated: true
ignore-generated-header: true
severity: warning
rules:
- name: unused-parameter
disabled: true

issues:
exclude-dirs-use-default: false
exclude-dirs:
- hack/bin
- testdata$
- examples$
- internal/static
exclude-files:
- "zz_*"
- ".*test.go"
exclude-rules:
- linters:
- goheader
text: "ysicing"

0 comments on commit a87dcfe

Please sign in to comment.