Eclipse formatter for Drupal Code Quality
Last updated by mariano.barcia on Tue, 2015-06-23 23:52
Attached you will find a code formatter for Eclipse Luna 4.4, compatible with the Drupal coding standards.
Install
You can import this formatter by uncompressing the XML file, and going to
Preferences -> PHP -> Code style -> Formatters -> Import
Usage
Say you are editing a Drupal .module. You can now right-click, Source->Format (Ctrl-Alt-F) and Eclipse will format your source code automatically to comply with Drupal Code Quality checks.
Also, you will find a code formatter for Eclipse PDT 3.8 (or Zend Studio 6.3).
Read moreChecking Coding Standards In NetBeans
Just wanted to share this little gem I found with the other Netbeans users out there:
http://www.amaxus.com/cms-blog/coding-standards-netbeans-php-codesniffer
It's a plugin for Netbeans that allows you to run Php_CodeSniffer from within Netbeans. I've been using it today with the DrupalCS standards library (http://drupal.org/project/drupalcs ) and it works pretty well. There's a couple little glitches, but it ends up catching about 99% of the stuff.
Also there's another version in development here:
http://sourceforge.net/projects/phpmdnb/
Read more