Surprising WARNING with PHP_CodeSniffer 1.0.0RC1
| From: | Laurent Laville | Date: | Sat, 03 Nov 2007 13:20:23 +0000 |
| Subject: | Surprising WARNING with PHP_CodeSniffer 1.0.0RC1 | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-48397@lists.php.net to get a copy of this message | ||
To Greg, Marc (package leaders)
While I'm starting again to work on PHP_CompatInfo, I've run PHP_CodeSniffer 1.0.0RC1 on all files of my package distrib, and found some stranges warnings.
Here are the list: look out specially on surrounding assignments
Lines refered to CVS version
CVS: $Id: Cli.php,v 1.22 2007/11/03 11:38:50 farell Exp $
Perharps it's still something to fix before release final version 1.0.0 of PHP_CodeSniffer , or you can give me an explain .
Thanks for your package that improve a lot the QA
Regards
Laurent
C:\wamp\php>phpcs C:\php\pear\PHP_CompatInfo\CompatInfo\Cli.php
FILE: C:\php\pear\PHP_CompatInfo\CompatInfo\Cli.php
--------------------------------------------------------------------------------
FOUND 0 ERROR(S) AND 13 WARNING(S) AFFECTING 13 LINE(S)
--------------------------------------------------------------------------------
231 | WARNING | Equals sign not aligned with surrounding assignments; expected
| | 23 spaces but found 1 space
245 | WARNING | Equals sign not aligned with surrounding assignments; expected
| | 22 spaces but found 1 space
259 | WARNING | Equals sign not aligned with surrounding assignments; expected
| | 27 spaces but found 1 space
273 | WARNING | Equals sign not aligned with surrounding assignments; expected
| | 27 spaces but found 1 space
287 | WARNING | Equals sign not aligned with surrounding assignments; expected
| | 28 spaces but found 1 space
308 | WARNING | Line exceeds 85 characters; contains 94 characters
364 | WARNING | Line exceeds 85 characters; contains 87 characters
372 | WARNING | Line exceeds 85 characters; contains 96 characters
465 | WARNING | Line exceeds 85 characters; contains 87 characters
538 | WARNING | Line exceeds 85 characters; contains 91 characters
561 | WARNING | Equals sign not aligned with surrounding assignments; expected
| | 5 spaces but found 1 space
562 | WARNING | Equals sign not aligned with surrounding assignments; expected
| | 4 spaces but found 1 space
598 | WARNING | Line exceeds 85 characters; contains 87 characters
--------------------------------------------------------------------------------