feat: Add support for Go callgraph processing#43
Conversation
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 support for Go callgraph processing by implementing Go-specific processors for function calls, method declarations, and function declarations, along with Go-specific node types and a test fixture.
- Adds wrapper functions to conditionally handle Go-specific syntax tree nodes
- Implements Go-specific processors for call expressions, function declarations, and method declarations
- Includes comprehensive test cases with a Go test fixture
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| plugin/callgraph/processors.go | Adds Go-specific processors and wrapper functions for handling Go callgraph processing |
| plugin/callgraph/plugin_test.go | Adds comprehensive Go test case with expected call graph results |
| plugin/callgraph/nodeTypes.go | Adds Go literal types and data structure types to existing maps |
| plugin/callgraph/fixtures/testCallGraph.go | New test fixture file containing various Go function and method call patterns |
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 #43 +/- ##
==========================================
- Coverage 57.79% 57.46% -0.34%
==========================================
Files 47 47
Lines 4580 4843 +263
==========================================
+ Hits 2647 2783 +136
- Misses 1709 1822 +113
- Partials 224 238 +14 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
vet Summary ReportThis report is generated by vet Policy Checks
Malicious Package AnalysisMalicious package analysis was performed using SafeDep Cloud API Malicious Package Analysis Report
Changed PackagesChanged Packages
Policy ViolationsPackages Violating Policy[Go]
|
No description provided.