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

[lintian] 02/02: Means line length is an integer.



This is an automated email from the git hooks/post-receive script.

broucaries-guest pushed a commit to branch master
in repository lintian.

commit afe6b3a436cf3598759d304d587bc7fe84bd532e
Author: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
Date:   Sat Mar 29 16:29:43 2014 +0100

    Means line length is an integer.
    
    Do not need to add something like 4096.444443344
    
    Signed-off-by: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
---
 checks/cruft.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/checks/cruft.pm b/checks/cruft.pm
index 25e425b..03f6108 100644
--- a/checks/cruft.pm
+++ b/checks/cruft.pm
@@ -834,7 +834,7 @@ sub full_text_check {
                     my $linelength = $total/($strip =~ tr/\n// + 1);
                     if($linelength > 255) {
                         tag 'source-contains-prebuilt-javascript-object',
-                          $name, 'means line length is about', $linelength,
+                          $name, 'means line length is about', int($linelength),
                           'characters';
                         # Check for missing source.  It will check
                         # for the source file in well known directories

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: