MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / print_fix_github_annotations

Function print_fix_github_annotations

src/fix.rs:590–602  ·  view source on GitHub ↗

Emit GitHub Actions workflow commands for fix results. Each fix is printed as a `::notice` annotation so it appears as an inline annotation on pull request diffs.

(results: &[FileFixResult])

Source from the content-addressed store, hash-verified

588/// Each fix is printed as a `::notice` annotation so it appears as an
589/// inline annotation on pull request diffs.
590fn print_fix_github_annotations(results: &[FileFixResult]) {
591 for result in results {
592 for fix in &result.fixes {
593 let message = crate::analyse::format_github_message(&fix.description);
594 println!(
595 "::notice file={path},line={line},col=0,title={rule}::{message}",
596 path = result.display_path,
597 line = fix.line,
598 rule = fix.rule,
599 );
600 }
601 }
602}
603
604/// Print fix results as a single JSON object.
605///

Callers 1

runFunction · 0.85

Calls 1

format_github_messageFunction · 0.85

Tested by

no test coverage detected