News Feed
Jobs Feed
Sections




News Archive
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

Robert Basic's Blog: LAMP and SVN on Ubuntu 8.10

Content With Style: Quick lint check on changed php files with svn st and xargs

Symfony Blog: Symfony 2 Migration to Git

Content With Style: Quick lint check on changed php files with svn st and xargs

Stoyan Stefanov's Blog: PHP/Javascript dev tools for TextPad


Community Events











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


community testing podcast database zendframework2 rest phpunit opinion interview series conference development functional language framework release introduction example symfony2 usergroup

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