[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][lintian/lintian][master] 2 commits: Check file_type in LineLength. Closes: #1014255.



Title: GitLab

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:

Changes:

  • lib/Lintian/Check/Files/Contents/LineLength.pm
    ... ... @@ -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
    

  • t/recipes/checks/files/contents/line-length/cruft-gfdl-invariants/eval/hints
    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]

  • t/recipes/odd-inputs/file-info-errors/eval/literal
    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]


  • Reply to: