News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Content With Style:
Quick lint check on changed php files with svn st and xargs
October 20, 2009 @ 08:27:24

On the Content with Style blog, there's a "quickie" you can drop into a subversion hook as a part of your check-in that will run the lint command on only the changed files (not your entire repository).

If you haven't done it in a hook already, here's the quick way to check all your changed files for syntax errors.

This sort of command would be the most useful in a pre-commit hook to ensure that everything passes correctly. Their example only looks for ".php" files, but can be modified easily if you happen to use ".html" or another custom extension for your pages too.

0 comments voice your opinion now!
lint check svn xargs changed


blog comments powered by Disqus

Similar Posts

Nola\'s Blog: Test Freak!

Symfony Blog: All symfony 1.x versions available on Github

Zend Developer Zone: Round\'em up, Head\'em out...Let\'s do a Framework Roundup!

Stefan Koopmanschap's Blog: Distributing your project with symfony embedded

Sebastian Nohn's Blog: Using Net_DNSBL and Nagios to check if your SMTP server is listed in a RBL


Community Events





Don't see your event here?
Let us know!


package opinion zendserver update interview deployment api language introduction tips framework install podcast library laravel list community series release symfony

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework