feat: Add support for JS callgraph processing#44
Conversation
abhisek
commented
Oct 5, 2025
- feat: Add support for Javascript callgraph
- fix: Handle arrow and module funcs in JS
SafeDep Report SummaryPackage Details
This report is generated by SafeDep Github App. |
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive JavaScript callgraph processing support to the existing callgraph plugin. It extends the system to handle JavaScript-specific constructs while reusing the common processing infrastructure.
Key changes:
- Adds JavaScript language support with specialized processors for JS-specific node types
- Refactors Go-specific processors to be language-agnostic wrappers that route to appropriate language handlers
- Implements module-level call tracking for JavaScript through enhanced expression statement processing
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| plugin/callgraph/plugin.go | Adds JavaScript to supported languages list |
| plugin/callgraph/processors.go | Main implementation adding JS processors and refactoring language-specific routing |
| plugin/callgraph/plugin_test.go | Comprehensive test case for JavaScript callgraph functionality |
| plugin/callgraph/fixtures/testJavascript.js | Test fixture demonstrating various JavaScript constructs |
| .tool-versions | Updates Go version from 1.24.3 to 1.25.1 |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #44 +/- ##
==========================================
+ Coverage 57.40% 60.18% +2.77%
==========================================
Files 47 47
Lines 4843 5289 +446
==========================================
+ Hits 2780 3183 +403
- Misses 1824 1827 +3
- Partials 239 279 +40 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.