todogroup/repolinter

Support ignoring files in glob checkers

Opened this issue · 0 comments

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.