You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: java-ecosystem/libs/analysis-engine/src/main/java/org/rostilos/codecrow/analysisengine/service/IssueReconciliationEngine.java
+78-19Lines changed: 78 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,11 @@ public class IssueReconciliationEngine {
48
48
publicrecordLineRemapResult(
49
49
ReconcilableIssueissue,
50
50
intoldLine,
51
-
intnewLine
51
+
intnewLine,
52
+
/** Remapped scope start line (null if original was null). */
53
+
IntegernewScopeStartLine,
54
+
/** Remapped scope end line (null if original was null). */
55
+
IntegernewEndLineNumber
52
56
) {
53
57
publicbooleanchanged() {
54
58
returnoldLine != newLine;
@@ -62,7 +66,11 @@ public record SnippetVerificationResult(
62
66
ReconcilableIssueissue,
63
67
intcorrectedLine,
64
68
StringcorrectedLineHash,
65
-
StringcorrectedContextHash
69
+
StringcorrectedContextHash,
70
+
/** Scope start line resolved from AST at the corrected position (null if no AST). */
71
+
IntegercorrectedScopeStartLine,
72
+
/** Scope end line resolved from AST at the corrected position (null if no AST). */
73
+
IntegercorrectedEndLineNumber
66
74
) {}
67
75
68
76
/**
@@ -86,7 +94,11 @@ public record ContentClassification(
86
94
/** Updated line number (set for CONFIRMED issues, null otherwise). */
87
95
IntegerupdatedLine,
88
96
/** Updated line hash (set for CONFIRMED issues, null otherwise). */
89
-
StringupdatedLineHash
97
+
StringupdatedLineHash,
98
+
/** Updated scope start line resolved from AST (null if no AST or not CONFIRMED). */
99
+
IntegerupdatedScopeStartLine,
100
+
/** Updated scope end line resolved from AST (null if no AST or not CONFIRMED). */
101
+
IntegerupdatedEndLineNumber
90
102
) {}
91
103
92
104
/**
@@ -134,7 +146,19 @@ public List<LineRemapResult> remapLinesFromDiff(
Copy file name to clipboardExpand all lines: java-ecosystem/libs/analysis-engine/src/main/java/org/rostilos/codecrow/analysisengine/service/branch/BranchIssueReconciliationService.java
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -104,6 +104,12 @@ public void reconcileIssueLineNumbers(String rawDiff, Set<String> changedFiles,
Copy file name to clipboardExpand all lines: java-ecosystem/libs/analysis-engine/src/test/java/org/rostilos/codecrow/analysisengine/service/IssueReconciliationEngineTest.java
Copy file name to clipboardExpand all lines: java-ecosystem/services/web-server/src/main/java/org/rostilos/codecrow/webserver/analysis/dto/response/FileViewResponse.java
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,12 @@ public record InlineIssue(
38
38
/** Tracking lineage: which previous issue this was tracked from (null for first iteration). */
39
39
LongtrackedFromIssueId,
40
40
/** Tracking confidence: EXACT, SHIFTED, EDITED, WEAK, or null. */
41
-
StringtrackingConfidence
41
+
StringtrackingConfidence,
42
+
/** Issue scope: LINE, BLOCK, FUNCTION, FILE, or null for legacy issues. */
43
+
StringissueScope,
44
+
/** End line number for scope highlighting (null for LINE-scoped issues). */
45
+
IntegerendLineNumber,
46
+
/** Scope start line for scope highlighting (null for LINE-scoped issues). */
0 commit comments