Disallow double trailing newlines in tidy
This commit is contained in:
parent
7f0f0e31ec
commit
a43ccb0b9b
@ -159,7 +159,7 @@ pub fn check(path: &Path, bad: &mut bool) {
|
||||
}
|
||||
match trailing_new_lines {
|
||||
0 => tidy_error!(bad, "{}: missing trailing newline", file.display()),
|
||||
1 | 2 => {}
|
||||
1 => {}
|
||||
n => tidy_error!(bad, "{}: too many trailing newlines ({})", file.display(), n),
|
||||
};
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user