bolin feedback

This commit is contained in:
Ahmed Ibrahim
2025-08-22 16:58:27 -07:00
parent 021d9beebd
commit 4243c44b22

View File

@@ -109,7 +109,7 @@ fn review_findings_from_unified_diff(cwd: &Path, diff: &str) -> Vec<Finding> {
body,
confidence_score: confidence_for_index(template_index),
code_location: CodeLocation {
absolute_file_path: path.display().to_string(),
absolute_file_path: to_forward_slashes(path),
line_range: LineRange {
start: new_line,
end: new_line,
@@ -151,6 +151,10 @@ fn parse_start_count(text: &str) -> (u32, u32) {
}
}
fn to_forward_slashes(path: &Path) -> String {
path.to_string_lossy().replace('\\', "/")
}
#[cfg(test)]
mod tests {
use super::*;