Advise the user on how to suppress the file length tidy error
This commit is contained in:
parent
aa388f1d11
commit
b759c2d714
1 changed files with 7 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue