From b759c2d714d4087fb7465fe880675661d5428117 Mon Sep 17 00:00:00 2001 From: varkor Date: Mon, 22 Apr 2019 21:05:57 +0100 Subject: [PATCH] Advise the user on how to suppress the file length tidy error --- src/tools/tidy/src/style.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/tools/tidy/src/style.rs b/src/tools/tidy/src/style.rs index 4de7e580b000..3bb2643f9c35 100644 --- a/src/tools/tidy/src/style.rs +++ b/src/tools/tidy/src/style.rs @@ -213,7 +213,13 @@ pub fn check(path: &Path, bad: &mut bool) { n => tidy_error!(bad, "{}: too many trailing newlines ({})", file.display(), n), }; if !skip_file_length && lines > LINES { - tidy_error!(bad, "{}: too many lines ({})", file.display(), lines); + tidy_error!( + bad, + "{}: too many lines ({}) (add `// ignore-tidy-filelength` to the file to \ + suppress this error)", + file.display(), + lines + ); } if let Directive::Ignore(false) = skip_cr {