Tuesday, March 18. 2008Integrate php lint syntax checks in your build processTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
You could also use the available Phing task called PhpLintTask to validate the syntax in a single file or fileset.
The problem with the phing task is, that it just throws a warning and not erorrs out. More important however, linting a huge project is not really fast. One option to make it faster would mean patching the cli SAPI to allow more than one file passed to -l.
While this is obviously many months after post, I did want to clear up this misinformation. The Phing phplint task does have a haltonfailure option which would cause the build process to error out. (Perhaps this changed since the comment, I'm not sure.)
Hi Raphael,
thanks for that hint, but I use ant as build tool and not phing |
ProjectsFurther stuffCategories |

