Re-add the fix icon to README.md (#443)

This commit is contained in:
Charlie Marsh 2022-10-16 21:21:30 -04:00 committed by GitHub
parent 48bd766298
commit 1a1922b3fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 154 additions and 150 deletions

View file

@ -9,16 +9,18 @@ fn main() {
println!("### {}", check_category.title());
println!();
println!("| Code | Name | Message |");
println!("| ---- | ---- | ------- |");
println!("| Code | Name | Message | Fix |");
println!("| ---- | ---- | ------- | --- |");
for check_code in CheckCode::iter() {
if check_code.category() == check_category {
let check_kind = check_code.kind();
let fix_token = if check_kind.fixable() { "🛠" } else { "" };
println!(
"| {} | {} | {} |",
"| {} | {} | {} | {} |",
check_kind.code().as_ref(),
check_kind.as_ref(),
check_kind.body().replace("|", r"\|")
check_kind.body().replace("|", r"\|"),
fix_token
);
}
}