Skip to content

Commit

Permalink
Replace run.skip-files with issues.exclude-files in golangci config
Browse files Browse the repository at this point in the history
Address the warning "The configuration option `run.skip-files` is
deprecated, please use `issues.exclude-files`."

Signed-off-by: Chun-Hung Tseng <[email protected]>
  • Loading branch information
henrybear327 committed Apr 2, 2024
1 parent a08812e commit f6eda94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/.golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
run:
timeout: 30m
skip-files: [^zz_generated.*]
issues:
max-same-issues: 0
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
# exclude ineffassing linter for generated files for conversion
- path: conversion\.go
linters: [ineffassign]
exclude-files:
- ^zz_generated.*
linters:
disable-all: true
enable: # please keep this alphabetized
Expand Down

0 comments on commit f6eda94

Please sign in to comment.