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])
| 588 | /// Each fix is printed as a `::notice` annotation so it appears as an |
| 589 | /// inline annotation on pull request diffs. |
| 590 | fn 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 | /// |
no test coverage detected