Bug #19699 [Com]: Generic.Files.LineLength giving false positives when tab-width is used

From: Date: Sun, 11 Nov 2012 23:08:57 +0000
Subject: Bug #19699 [Com]: Generic.Files.LineLength giving false positives when tab-width is used
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-9326@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19699&edit=1 ID: 19699 Comment by: pear@kennel17.co.uk Reported By: pear at kennel17 dot co dot uk Summary: Generic.Files.LineLength giving false positives when tab-width is used Status: Closed Type: Bug Package: PHP_CodeSniffer Operating System: All Package Version: 1.4.2 PHP Version: Irrelevant Assigned To: squiz Roadmap Versions: New Comment: Fantastic - once again impressed by the speed of resolution! Plus - it's always good to see a bugfix that involves code being removed, rather than added. :-) Previous Comments: ------------------------------------------------------------------------ [2012-11-11 22:17:26] squiz -Status: Assigned +Status: Closed Thanks for the detailed test case and output. It made testing very easy. The problem was with PHP_CodeSniffer's conversion of tabs to spaces for calculating column numbers. I've committed a fix to the github repo: https://github.com/squizlabs/PHP_CodeSniffer/commit/dcf61b5f3feb677f190f5b0bbea c246533045c3b ------------------------------------------------------------------------ [2012-11-11 22:15:06] squiz -Summary: Generic.Files.LineLength giving false positives. +Summary: Generic.Files.LineLength giving false positives when tab-width is used ------------------------------------------------------------------------ [2012-11-11 17:51:26] happydog Sent. ------------------------------------------------------------------------ [2012-11-11 02:40:09] squiz -Assigned To: +Assigned To: squiz Hi Mark, Please send me the test case: gsherwood at squiz dot net ------------------------------------------------------------------------ [2012-11-11 00:01:31] happydog OK - well, it looks like the crappy bug-tracker won't accept anything except text files, and even when I rename them "Example.txt" before uploading it borks and refuses the upload, as it has detected them as PHP files. I can't paste them here as white-space will be mangled, which I'm sure is the cause of the problem, so can someone either fix the bug-tracker or give me an e-mail address to send the test-cases to. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://pear.php.net/bugs/bug.php?id=19699 -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19699&edit=1

« previous php.pear.bugs (#9326) next »