Skip to content

Commit 77222e7

Browse files
shivasuryaclaude
andcommitted
fix(lint): fix tagliatelle JSON tags + remove unused param in resolution_report
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2bae5fa commit 77222e7

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

sast-engine/cmd/resolution_report.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Use --csv to export unresolved calls with file, line, target, and reason.`,
120120

121121
// Export call sites JSON for validation against ground truth
122122
if dumpJSON != "" {
123-
if err := dumpCallSitesJSON(cg, projectInput, dumpJSON); err != nil {
123+
if err := dumpCallSitesJSON(cg, dumpJSON); err != nil {
124124
fmt.Printf("Error writing call sites JSON: %v\n", err)
125125
} else {
126126
fmt.Printf("\nExported call sites to %s\n", dumpJSON)
@@ -559,17 +559,17 @@ type callSiteRecord struct {
559559
File string `json:"file"`
560560
Line int `json:"line"`
561561
Col int `json:"col"`
562-
CallerFQN string `json:"caller_fqn"`
562+
CallerFQN string `json:"callerFqn"`
563563
Target string `json:"target"`
564-
OurFQN string `json:"our_fqn"`
564+
OurFQN string `json:"ourFqn"`
565565
Resolved bool `json:"resolved"`
566-
TypeSource string `json:"type_source,omitempty"` // e.g., "go_variable_binding", "thirdparty_local"
567-
IsStdlib bool `json:"is_stdlib,omitempty"`
566+
TypeSource string `json:"typeSource,omitempty"` // e.g., "go_variable_binding", "thirdparty_local"
567+
IsStdlib bool `json:"isStdlib,omitempty"`
568568
}
569569

570570
// dumpCallSitesJSON writes all Go call sites (resolved + unresolved) to a JSONL file
571571
// so they can be compared against a ground-truth extractor (e.g., go/packages).
572-
func dumpCallSitesJSON(cg *core.CallGraph, projectRoot, outputPath string) error {
572+
func dumpCallSitesJSON(cg *core.CallGraph, outputPath string) error {
573573
f, err := os.Create(outputPath)
574574
if err != nil {
575575
return fmt.Errorf("failed to create JSON file: %w", err)

0 commit comments

Comments
 (0)