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

Allow negative patterns in diagnostic filters #1078

Conversation

josephjunker
Copy link
Collaborator

This feature lets users prefix a glob with ! to make it a negative pattern which un-ignores certain errors. My use case for this is one which I've added to the documentation; I want to ignore errors from all dependencies in a project except for one specific dependency, and I don't want to have to maintain a list of all other dependencies any time one is added or moved.

Using file paths to indicate un-ignores means that it's not possible to un-ignore a code without specifying a file path. A workaround for this is to use the glob !*/**/*, matching everything in the rootDir. I've added this to the documentation and the tests.

The implementation is such that it's possible to un-un-un-un-ignore patterns to any depth. This is likely overkill and would be inadvisable to do in practice, but I think the semantics of this are actually simpler and more familiar than it would be to have things bottom out at a specific level.

Copy link
Member

@TwitchBronBron TwitchBronBron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!

Copy link
Member

@TwitchBronBron TwitchBronBron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. Thanks so much!

docs/bsconfig.md Outdated Show resolved Hide resolved
@TwitchBronBron TwitchBronBron merged commit dffdc09 into rokucommunity:master Mar 4, 2024
6 checks passed
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.

2 participants