News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Daniel O'Connor's Blog:
How to customise PHP_CodeSniffer
June 13, 2008 @ 11:11:36

Daniel O'Connor has posted a quick guide to customizing your installation of the PHP_CodeSniffer PEAR package to match the coding standard you'd like.

PHP_CodeSniffer is a PEAR package which detects potential coding problems and enforces your style guide. The default is the PEAR coding standard, but you can easily change that.

His method requires the creation of a custom "FooCodingStandard.php" (named whatever you'd like, of course) that contains a class/method defining the "sniffs" you'd like to use for your standard. Use "pfm" to make it into a package and install it to your system - you'll be all set.

0 comments voice your opinion now!
customize pear package phpcodesniffer sniff standard



Similar Posts

Community News: Latest PEAR Releases for 03.19.2007

Greg Beaver's Blog: PHP_ParserGenerator and PHP_LexerGenerator

Oracle: PHP RPMs for Oracle (PHP 5.2.3)

Greg Beaver\'s Blog: pharring a web application - phpMyAdmin

PHP-Tools Blog: Der Zauberlehrling - Sorcerer's Apprentice


Community Events











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


package PHP5 cakephp zend database mysql job framework security book release zendframework application developer PEAR code releases conference example ajax

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