Skip to content

Commit ec67778

Browse files
committed
Show rationale once per result, fixes #3
1 parent 20d9a48 commit ec67778

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

fontspector-cli/src/reporters/terminal.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ impl Reporter for TerminalReporter {
7575
println!(" Section: {:}\n", sectionname);
7676
sectionheading_done = true;
7777
}
78+
println!(">> {:}", result.check_id);
79+
if args.verbose > 1 {
80+
println!(" {:}", result.check_name);
81+
termimad::print_inline(&format!(
82+
"Rationale:\n\n```\n{}\n```\n",
83+
result.check_rationale
84+
));
85+
}
7886
for subresult in subresults {
79-
println!(">> {:}", result.check_id);
80-
if args.verbose > 1 {
81-
println!(" {:}", result.check_name);
82-
termimad::print_inline(&format!(
83-
"Rationale:\n\n```\n{}\n```\n",
84-
result.check_rationale
85-
));
86-
}
8787
termimad::print_inline(&format!("{:}\n", subresult));
8888
}
8989
match &result.hotfix_result {

0 commit comments

Comments
 (0)