What is the current command-line flag to be used instead of "--skip-files"? #5645
-
Hello community, Checking changelogs, docs, markdown files, looking in the commits history, I don't see something that mentions which command to run instead "--skip-files" when using the command-line. Can you please provide some insight about what flags now can be used for that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello,
Inside the v1, this flag has been renamed to https://golangci-lint.run/product/migration-guide/#command-line-flags I recommend using the configuration: linters:
exclusions:
paths:
- your/path/to/files |
Beta Was this translation helpful? Give feedback.
Hello,
--skip-files
was deprecated inside the v1 (since v1.57.0 2024-03-28), so there is no v2 migration documentation for this flag.Inside the v1, this flag has been renamed to
--exclude-dirs
(since v1.57.0 2024-03-28), and inside the v2,--exclude-dirs
has been removed.https://golangci-lint.run/product/migration-guide/#command-line-flags
I recommend using the configuration: