A filter to remove unneeded parts from the cc.json
See original GitHub issueContext
Source code sometimes contains vendor code (angular, hibernate, etc.) which shows up in the cc.json and then in the visualization. We do not need that code, because it is beyond our scope and frankly out of our control.
Description
We want to permanently remove vendor code from our cc.json, even if it is placed on some form of sublayer.
The interface should be the one suggested by @ukinimod below:
ccsh filter -exclude "src/main/de/**/*Test.java" test.cc.json > filtered_test.cc.json
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How can I delete unwanted elements from this JSON array?
One low effort way is to use Array#Map and then select only the elements you want. var hits = [ { "_index": ".example_demo", ......
Read more >Remove elements from Json array - Power Automate
Solved: Hi All I am getting data from data verse table with specific set of columns in flow and i am getting some...
Read more >12.18.3 Functions That Search JSON Values
The functions in this section perform search or comparison operations on JSON values to extract data from them, report whether data exists at...
Read more >Ability to remove unnecessary Template Parts from core theme
Overriding "templateParts" in child theme's theme.json should reflect on the Editor > Template Parts and it should allow modifying/deleting ...
Read more >Hide or remove objects with Content-Aware Fill - Adobe Support
Use the advanced blending capabilities of Content-Aware Fill in Adobe Photoshop to hide or remove unwanted objects in your images.
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 would be practical for me is an integration in ccsh via regex (e.g. ant-style regex), e.g. via ccsh filter -exclude “src/main/de/**/*Test.java” test.cc.json > filtered_test.cc.json or ccsh filter -f filter.txt test.cc.json > filtered_test.cc.json
Consequently, these filtered nodes should be treated, at least by default, as non-existant in the visualization.
Usually I try to already filter out these files with the analysis tools, e.g. understand, by setting the filters there, but in case we no longer have the sources it is not possible to redo the analysis with the correct filters. Therefor it’s probably a non-standard use-case for me.
Reopenend because there are many cases where items should not be in the cc.json at all. node_modules, vendor librararies or similar significantly slow down the
ccsh mergefilter. To combat this issue we want to permantenly remove them from the cc.json.