Louis-Philippe Véronneau pushed to branch master at lintian / lintian
Commits:
c05d6e7d by Matt Barry at 2025-08-28T02:06:18+05:30
Check file_type in LineLength. Closes: #1014255.
- - - - -
25d6b0a3 by Nilesh Patra at 2025-08-28T13:54:16+05:30
Adjust tests to not display very-long-line-length on non-ascii/unicode files
- - - - -
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:
=====================================
lib/Lintian/Check/Files/Contents/LineLength.pm
=====================================
@@ -75,6 +75,11 @@ sub visit_patched_files {
return
unless $item->is_regular_file;
+ # Skip if file type is not text
+ my $text_types = qr{(ASCII|Unicode) text};
+ return
+ unless $item->file_type =~ $text_types;
+
# Skip if file has a known binary, XML or JSON suffix.
my $pattern = $self->BINARY_FILE_EXTENSIONS_OR_ALL;
return
=====================================
t/recipes/checks/files/contents/line-length/cruft-gfdl-invariants/eval/hints
=====================================
@@ -1,2 +1 @@
-cruft-gfdl-invariants (source): very-long-line-length-in-source-file 975 > 512
[src/false-positive.rtf:16]
cruft-gfdl-invariants (source): very-long-line-length-in-source-file 1162 >
512 [src/oldfalsepositive/fontsMX.html:1]
=====================================
t/recipes/odd-inputs/file-info-errors/eval/literal
=====================================
@@ -1,2 +1 @@
W: file-info-errors: empty-binary-package
-X: file-info-errors source: very-long-line-length-in-source-file 2741 > 512
[split.clam.ole.docaa:9]
View it on GitLab:
https://salsa.debian.org/lintian/lintian/-/compare/ef2e74bb0f9f1efbe04d284b41692b133386af90...25d6b0a37efff5568bbf2ab33859b2a74cbdf908
--
View it on GitLab:
https://salsa.debian.org/lintian/lintian/-/compare/ef2e74bb0f9f1efbe04d284b41692b133386af90...25d6b0a37efff5568bbf2ab33859b2a74cbdf908
You're receiving this email because of your account on salsa.debian.org.