tidy: Re-enable the "ignoring file length unnecessarily" check

Closes #77548.
This commit is contained in:
Simon Jakobi 2021-04-11 16:38:13 +02:00
parent 58f32da346
commit 761ef8fc53

View File

@ -379,11 +379,9 @@ pub fn check(path: &Path, bad: &mut bool) {
if let Directive::Ignore(false) = skip_tab {
tidy_error!(bad, "{}: ignoring tab characters unnecessarily", file.display());
}
// FIXME: Temporarily disabled to simplify landing the ignore-rules for the line
// length check (https://github.com/rust-lang/rust/issues/77548):
//if let Directive::Ignore(false) = skip_line_length {
// tidy_error!(bad, "{}: ignoring line length unnecessarily", file.display());
//}
if let Directive::Ignore(false) = skip_line_length {
tidy_error!(bad, "{}: ignoring line length unnecessarily", file.display());
}
if let Directive::Ignore(false) = skip_file_length {
tidy_error!(bad, "{}: ignoring file length unnecessarily", file.display());
}