News Feed
Sections




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

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


blog comments powered by Disqus

Similar Posts

Tony Bibbs' Blog: Zend Framework's Official PEAR Channel?

Cal Evans' Blog: XAMPP, PHP 5.3, PEAR, and PHAR (what a mess)

WebReference.com: Globalize your Web Applications: PHP's Locale Package

Community News: EngineYard Hosts "Future of PHP" Live Panel - "PEAR & Pyrus"

Builder.com: Search and map directory trees with ease using the right PHP class


Community Events





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


wordpress install opinion laravel unittest testing series language introduction interview code configure refactor release developer framework community podcast list threedevsandamaybe

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