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

Add Rule.withIsFileIgnored #145

Merged
merged 6 commits into from
Dec 17, 2022
Merged

Add Rule.withIsFileIgnored #145

merged 6 commits into from
Dec 17, 2022

Conversation

jfmengels
Copy link
Owner

@jfmengels jfmengels commented Dec 17, 2022

Add Rule.withIsFileIgnored, which tells you whether a file is being ignored or not.
This knowledge might be useful to skip unnecessary work (collecting data or reporting errors) related to an ignored file.

I hope that we can use this information later on to entirely skip files (in project rules) or specific visitors, but I haven't been able to find a good design for this yet. This might be a good start for some rules already.

@jfmengels jfmengels merged commit fad9076 into master Dec 17, 2022
@jfmengels jfmengels deleted the ignored-files-knowledge branch December 17, 2022 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant