-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add options to include/exclude paths #4635
Comments
Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors. |
Hello, you can use |
I don't see how exclude-files can exclude /ent/**, but include /ent/schema. Adjusting my example above, |
I see a few options for how we can manage it.
@ldez Thoughts? |
Your feature request related to a problem? Please describe
I use https://entgo.io. It generates an /ent directory, and expects you to put your schema definitions in /ent/schema. It then generates code in /ent/foo, /ent/bar, etc. I have no control over the generated code, so I don't want to see linter errors for it. I don't see a way to exclude /ent/**, but include /ent/schema.
Describe the solution you'd like
run --exclude-path '^ent/.*$' --include-path '^ent/schema/.*$'
Describe alternatives you've considered
--exclude-dirs only works on directory names, which won't work if you want to skip some directories and exclude others with the same name.
Additional context
No response
The text was updated successfully, but these errors were encountered: