Skip to content

What is the current command-line flag to be used instead of "--skip-files"? #5645

Answered by ldez
tovar-rodrigo asked this question in Q&A
Discussion options

You must be logged in to vote

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:

linters:
  exclusions:
    paths:
      - your/path/to/files

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ldez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants