PHPCS 1.2.0RC2 and standard rules
| From: | Laurent Laville | Date: | Thu, 02 Jul 2009 21:16:58 +0000 |
| Subject: | PHPCS 1.2.0RC2 and standard rules | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-52298@lists.php.net to get a copy of this message | ||
With PHP_CodeSniffer 1.2.0RC2, it's impossible to write
if (preg_match_all(
'/^(@[a-zA-Z\-]+)\s+(.+);\s*$/m', $struct, $atRules,
PREG_SET_ORDER)
) {
Or you get
1931 | ERROR | Each line in a multi-line IF statement must begin with a
| | boolean operator1932 | ERROR | Each line in a multi-line IF statement must begin with a
| | boolean operator
1932 | ERROR | Multi-line function call not indented correctly; expected 12
| | spaces but found 16
1932 | ERROR | Closing parenthesis of a multi-line function call must be on a
| | line by itself