Excluding a negation in patterns
See original GitHub issueBug
There is this use case when you have analyzed a project with a lot of different file-endings like a common web-application using html, js and css and you want to exclude all building BUT the .js-buildings. This is still possible by excluding *.html and *.css but it should be possible by excluding !*.js
Expected Behavior
Excluding !*.ts in the web visualization for example should exclude everything BUT the ts-files.
Actual Behavior
Nothing is excluded at all.
Specifications
- is released in online-demo: yes
- CodeCharta Version: 1.49.0
- OS: MacOS
- Browser: Chrome
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
How do negated patterns work in .gitignore? - Stack Overflow
My understanding (based on this doc page) is that the file aaa/ccc/otherfile. txt should not be ignored, but in fact git is ignoring...
Read more >Negating patterns: add --exclude-regex? #198 - sharkdp/fd
I noticed grep has a -L flag to find filenames that don't contain the search pattern. What about the related operation of finding...
Read more >Performing pattern negation to multiple nodes - Neo4j
Correct approach: collect nodes to exclude, and use WHERE NONE() on the collection to drive exclusion ... We can do the same thing...
Read more >Exclude one pattern from glob match - Unix StackExchange
GlennJackman's answer shows how to enable extended pattern matching features to negate a match. – Johnny. Oct 24, 2014 at 17:33. Add a...
Read more >Negation - Grammar - Cambridge Dictionary
n't is the contracted form of not. In informal language we can add n't, without a space, to be, to modal verbs (except...
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 Free
Top 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

What about reworking our filtering in general? I think it would be nice to improve this by allowing notations that do not require to write globs. It’s just a low priority though.
This is already implemented 😃