Edit report at http://pear.php.net/bugs/bug.php?id=18566&edit=1
ID: 18566
Updated by: [email protected]
Reported By: cweiske at php dot net
Summary: Option to run syntax check
Status: Open
Type: Feature/Change Request
Package: PHP_CodeSniffer
Package Version: 1.3.0
PHP Version: 5.3.6
Roadmap Versions:
New Comment:
I don't suppose you'd want to run it as a separate step in the build
process? I mean,
a syntax error isn't exactly a coding style violation - it's more like
"fail the entire
build".
Phing, for instance, provides a phplint task -
http://www.hermanradtke.com/blog/phing-phplint-task/
Previous Comments:
------------------------------------------------------------------------
[2011-05-26 10:09:37] cweiske
Description:
------------
It would be nice if there was an option in phpcs to run the syntax check
before validating the file.
While it's possible to run "php -l $file && phpcs $file", this does not
integrate nicely with the phpcs report formats.
------------------------------------------------------------------------