Louis-Philippe Véronneau pushed to branch master at lintian / lintian
Commits:
-
c05d6e7d
by Matt Barry at 2025-08-28T02:06:18+05:30
-
25d6b0a3
by Nilesh Patra at 2025-08-28T13:54:16+05:30
3 changed files:
- lib/Lintian/Check/Files/Contents/LineLength.pm
- t/recipes/checks/files/contents/line-length/cruft-gfdl-invariants/eval/hints
- t/recipes/odd-inputs/file-info-errors/eval/literal
Changes:
... | ... | @@ -75,6 +75,11 @@ sub visit_patched_files { |
75 | 75 | return
|
76 | 76 | unless $item->is_regular_file;
|
77 | 77 | |
78 | + # Skip if file type is not text
|
|
79 | + my $text_types = qr{(ASCII|Unicode) text};
|
|
80 | + return
|
|
81 | + unless $item->file_type =~ $text_types;
|
|
82 | + |
|
78 | 83 | # Skip if file has a known binary, XML or JSON suffix.
|
79 | 84 | my $pattern = $self->BINARY_FILE_EXTENSIONS_OR_ALL;
|
80 | 85 | return
|
1 | -cruft-gfdl-invariants (source): very-long-line-length-in-source-file 975 > 512 [src/false-positive.rtf:16]
|
|
2 | 1 | cruft-gfdl-invariants (source): very-long-line-length-in-source-file 1162 > 512 [src/oldfalsepositive/fontsMX.html:1] |
1 | 1 | W: file-info-errors: empty-binary-package |
2 | -X: file-info-errors source: very-long-line-length-in-source-file 2741 > 512 [split.clam.ole.docaa:9] |