feedback icon indicating copy to clipboard operation
feedback copied to clipboard

Feature Request: the opposite of `ignore:`

Open dabrahams opened this issue 1 year ago • 0 comments

What product do you want to improve? YAML

Is your feature request related to a problem? Please describe.

Sometimes it's easier to say which paths should be in-cluded rather than excluded from a report. There's an ignore: field in the YAML that lets me exclude certain path patterns, but that could require me to list many paths when I only want to include one subdirectory.

Describe the solution you'd like I'd like an include: field to go along with ignore:

Describe alternatives you've considered Listing all the necessary ignore patterns. Actually it occurs to me that I could do it with ignore if your regex engine supports negative lookahead, but your regex syntax isn't documented, for which I'll open another issue.

Actually I now see that there's a ! pattern, but it's not working for me. I'll open an issue for that too.

dabrahams avatar May 17 '24 17:05 dabrahams