Add rule to exclude a path, like the inverse of `pick`
See original GitHub issueFeature request: In cases where there are lots of directories and files to include from a dependency module except one, it would be nice to be able to specify explicit paths to omit completely, rather than using pick
to verbosely declare everything to include.
I would suggest either:
- Add an
omit
orexclude
keyword for use in rule definitions - Support exclusion rules as part of
pick
statements with bangs, e.g.pick: ! hey/neat/this/could/also/support/globbing/**
I think I prefer 2.
Issue Analytics
- State:
- Created 7 years ago
- Comments:26 (18 by maintainers)
Top Results From Across the Web
glob exclude pattern - python - Stack Overflow
I want to exclude all files that start with eph with the glob function. How can I do it? python · glob ·...
Read more >Exclude all files except for... · Issue #869 · microsoft/vscode
The files exclude allows you to set true/false values, but it doesn't seem to take them completely into account. For example, I would...
Read more >Adding and removing conditions in a rule - AWS Documentation
Choose the name of the rule in which you want to add or remove conditions. ... If you want AWS WAF Classic to...
Read more >Exclude a directory or multiple directories while using find ...
We can exclude directories by using the help of “path“, “prune“, “o” and “print” switches with find command. See the example: # find...
Read more >Creating a scan exclusion - Kaspersky Knowledge Base
In this window, you can create a scan exclusion using one or both of the criteria from the Properties section. To exclude a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
drop
looks good to me!A bit unrelated, but before bumping to 1.0, maybe we can review open issues and discuss?
Ugh, I hate that PyYAML silently drops duplicated fields. There’s a very hacky warning in place to try to detect cases where that’s happening though. Did it trigger for you when you duplicated the
delete
field?As happy as I am to see someone using a multi-rule pipe, you’re right that you don’t need it in this case. What you want here is to give
delete
a YAML-formatted list of entries. So either this:or this
I don’t think the quotes are strictly necessary in that second example, but YAML parsing starts to get really unpredictable as soon as
*
and other interesting syntax get involved.I haven’t documented this yet, mostly because I felt like the README was getting too long, and I didn’t want to weigh it down with too many advanced use cases. I think what I should do now is split off an Advanced document, cram all this stuff in there, and just link to it from the main. We could move a ton of stuff under the fold like that.