Skip to content

Commit

Permalink
Lintcheck: Linkify counts in CI summery
Browse files Browse the repository at this point in the history
  • Loading branch information
xFrednet committed Jul 19, 2024
1 parent 967e234 commit c3baa43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lintcheck/src/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn print_warnings(title: &str, warnings: &[LintJson]) {
return;
}

println!("### {title}");
println!("### <span id="title">{title}</span>");
for warning in warnings {
println!("{title} `{}` at {}", warning.lint, warning.file_link);
println!("```");
Expand All @@ -65,7 +65,7 @@ fn print_changed_diff(changed: &[(LintJson, LintJson)]) {
return;
}

println!("### Changed");
println!("### <span id="Changed">Changed</span>");
for (old, new) in changed {
println!("Changed `{}` at {}", new.lint, new.file_link);
println!("```diff");
Expand Down Expand Up @@ -109,7 +109,7 @@ pub(crate) fn diff(old_path: &Path, new_path: &Path) {
}

print!(
"{} added, {} removed, {} changed\n\n",
r##"<a href="#Added">{} added</a>, <a href="#Removed">{} removed</a>, <a href="#Changed">{} changed</a>\n\n"##,
added.len(),
removed.len(),
changed.len()
Expand Down

0 comments on commit c3baa43

Please sign in to comment.