Replace run.skip-files with issues.exclude-files in golangci config

Address the warning "The configuration option `run.skip-files` is
deprecated, please use `issues.exclude-files`."

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
This commit is contained in:
Chun-Hung Tseng 2024-04-02 18:33:11 +02:00
parent a08812eb01
commit f6eda94579
No known key found for this signature in database
GPG Key ID: EF93C20F55FB48BB

View File

@ -1,7 +1,6 @@
---
run:
timeout: 30m
skip-files: [^zz_generated.*]
issues:
max-same-issues: 0
# Excluding configuration per-path, per-linter, per-text and per-source
@ -9,6 +8,8 @@ issues:
# 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