-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Thanks for this cool tool ! Was actually playing with a similar idea using semgrep :)
I think the "title" in the semgrepData JSON object is super long for some semgrep detections, and D3 is only showing me the @Operation, because the rest of the string has \n line breaks
If I remove the \n manually it doesn't fix it, hovering the cursor above a route will show the whole semgrep finding, including the URL mapping !
Not sure how this should be fixed, I would definitely put the RequestMapping above everything else cause that's the API route
EDIT: Alright I think the secret sauce is in d3ify
route-detect/routes/commands/viz.py
Line 85 in 2804595
| def d3ify(parts, output, result, connectors, _global): |
So maybe splitting the result lines further and extracting specific things, per language/framework, to have the route shown in D3
Maybe a generic regex extractor that can support all the framework ways of declaring URLs/paths ? that way it could extract the path everytime