[wp-hackers] WordPress coding standards and vim (was Re: Which editor do you use?)

Mike Bijon mike at etchsoftware.com
Thu Nov 10 23:07:50 UTC 2011


Tom,
The CodeSniffer package in PEAR and this coding standard are a good place
to start with formatting code:
* http://urbangiraffe.com/articles/wordpress-codesniffer-standard/

I've had good results using it on an inherited site via Eclipse,
http://daniloercoli.wordpress.com/2011/08/18/wordpress-coding-standards-and-eclipse/.
You & vim might prefer jumping straight to the command line docs,
http://pear.php.net/manual/en/package.php.php-codesniffer.usage.php.

For anyone else on this list is using a Mac, one of the PollDaddy devs
actually wrote something about automating standards with Coda or
TextWrangler. I haven't tried his method but it sounds this solution is
more automated than what CodeSniffer does:
*
http://magp.ie/2011/01/10/tidy-and-format-your-php-and-meet-wordpress-standards-on-coda-and-textwrangler/

-Mike


More information about the wp-hackers mailing list