Bug #19699 [Asn->Csd]: Generic.Files.LineLength giving false positives when tab-width is used
| From: | gsherwood at squiz dot net | Date: | Sun, 11 Nov 2012 22:17:26 +0000 |
| Subject: | Bug #19699 [Asn->Csd]: 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-9324@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
Updated by: gsherwood@squiz.net
Reported By: pear at kennel17 dot co dot uk
Summary: Generic.Files.LineLength giving false positives when
tab-width is used
-Status: Assigned
+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:
-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
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[2012-11-10 23:55:00] happydog
Description:
------------
I'm running the Generic.Files.LineLength Sniff on my files and am
getting a lot of false positives.
I will attach a test case which demonstrates the issue.
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19699&edit=1