Skip to content
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

Support ignoring files in glob checkers #271

Open
hyandell opened this issue Dec 7, 2022 · 0 comments
Open

Support ignoring files in glob checkers #271

hyandell opened this issue Dec 7, 2022 · 0 comments

Comments

@hyandell
Copy link
Member

hyandell commented Dec 7, 2022

New Feature

For example, file-not-exists supports globs. We use it to have a rule that flags if there are hidden files (.*) in a codebase, but we want to not flag on .gitignore and .gitkeep.

The underlying JS API supports passing an ignore array through, so updating each function/rule to support ignoring would suffice. In light local testing, this worked fine.

Expected Behavior

Each glob supporting rule would have an ignore parameter that has a list of ignorables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant