Re: CodeSniffer padding question
| From: | Greg Sherwood | Date: | Wed, 14 Nov 2007 21:12:28 +0000 |
| Subject: | Re: CodeSniffer padding question | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-28179@lists.php.net to get a copy of this message | ||
Christian Weiske wrote:
Tim,None of the current sniffs allow tabs because they are all based on standards that require spaces to be used instead of tabs. If you need a sniff that allows tabs, you will need to write your own. However, PHP_CodeSniffer could have a new feature added to turn tabs into spaces before it checks any code, potentially allowing the current sniffs to work without modification. I haven't looked into that possibility yet, but it would make a good feature request on the bug tracker. GregThe space after the $log line is a tab. The space after the $string line is also a tab.I think phpcs doesn't have proper tab support yet, so it should be a bug.I can make the error go away if I turn the first tab into 4 spaces,but this is not what I want to do. I want to keep the tab and have phpcs notice that they are properly aligned.