We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9475717 commit 3a20d52Copy full SHA for 3a20d52
src/tools/tidy/src/style.rs
@@ -430,7 +430,12 @@ pub fn check(path: &Path, bad: &mut bool) {
430
err(DOUBLE_SPACE_AFTER_DOT)
431
}
432
433
- if line.contains("//") {
+ if filename.ends_with(".ftl") {
434
+ let line_backticks = line.chars().filter(|ch| *ch == '`').count();
435
+ if line_backticks % 2 == 1 {
436
+ suppressible_tidy_err!(err, skip_odd_backticks, "odd number of backticks");
437
+ }
438
+ } else if line.contains("//") {
439
let (start_line, mut backtick_count) = comment_block.unwrap_or((i + 1, 0));
440
let line_backticks = line.chars().filter(|ch| *ch == '`').count();
441
let comment_text = line.split("//").nth(1).unwrap();
0 commit comments