MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / input_file

Function input_file

libatomic/src/review/incremental.rs:1300–1318  ·  view source on GitHub ↗
(
        repo: &Repository,
        report: &IncrementalReport,
        findings: Vec<atomic_canonical::review_graph::SubmittedFinding>,
    )

Source from the content-addressed store, hash-verified

1298 }
1299
1300 fn input_file(
1301 repo: &Repository,
1302 report: &IncrementalReport,
1303 findings: Vec<atomic_canonical::review_graph::SubmittedFinding>,
1304 ) -> std::path::PathBuf {
1305 let path = repo.root().join("review-observations.json");
1306 std::fs::write(
1307 &path,
1308 serde_json::to_vec(&atomic_canonical::review_graph::FindingsInput {
1309 schema: atomic_canonical::review_graph::INPUT_SCHEMA.into(),
1310 scope: report.graph.as_ref().unwrap().scope.clone(),
1311 findings,
1312 risk_assessment: None,
1313 })
1314 .unwrap(),
1315 )
1316 .unwrap();
1317 path
1318 }
1319
1320 #[test]
1321 fn graph_links_numbered_findings_to_unmet_criteria_without_rewriting_intents() {

Calls 5

as_refMethod · 0.80
writeFunction · 0.50
rootMethod · 0.45
unwrapMethod · 0.45
cloneMethod · 0.45