@@ -395,9 +395,6 @@ pub fn check(path: &Path, bad: &mut bool) {
395
395
) ;
396
396
} ;
397
397
suppressible_tidy_err ! ( err, skip_file_length, "" ) ;
398
- } else if lines > ( LINES * 7 ) / 10 {
399
- // Just set it to something that doesn't trigger the "unnecessarily ignored" warning.
400
- skip_file_length = Directive :: Ignore ( true ) ;
401
398
}
402
399
403
400
if let Directive :: Ignore ( false ) = skip_cr {
@@ -406,12 +403,6 @@ pub fn check(path: &Path, bad: &mut bool) {
406
403
if let Directive :: Ignore ( false ) = skip_tab {
407
404
tidy_error ! ( bad, "{}: ignoring tab characters unnecessarily" , file. display( ) ) ;
408
405
}
409
- if let Directive :: Ignore ( false ) = skip_line_length {
410
- tidy_error ! ( bad, "{}: ignoring line length unnecessarily" , file. display( ) ) ;
411
- }
412
- if let Directive :: Ignore ( false ) = skip_file_length {
413
- tidy_error ! ( bad, "{}: ignoring file length unnecessarily" , file. display( ) ) ;
414
- }
415
406
if let Directive :: Ignore ( false ) = skip_end_whitespace {
416
407
tidy_error ! ( bad, "{}: ignoring trailing whitespace unnecessarily" , file. display( ) ) ;
417
408
}
@@ -424,5 +415,9 @@ pub fn check(path: &Path, bad: &mut bool) {
424
415
if let Directive :: Ignore ( false ) = skip_copyright {
425
416
tidy_error ! ( bad, "{}: ignoring copyright unnecessarily" , file. display( ) ) ;
426
417
}
418
+ // We deliberately do not warn about these being unnecessary,
419
+ // that would just lead to annoying churn.
420
+ let _unused = skip_line_length;
421
+ let _unused = skip_file_length;
427
422
} )
428
423
}
0 commit comments