question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A filter to remove unneeded parts from the cc.json

See original GitHub issue

Context

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:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ukinimodcommented, Jun 25, 2018

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.

0reactions
Richarghcommented, Nov 30, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found