Getting code sniffer to work in eclipse with .module, .inc, and .info files

Events happening in the community are now at Drupal community events on www.drupal.org.
barnettech's picture

Hello,

I have Drupal Code Sniffer working in Vim, and now in Eclipse (which is my preferred IDE), and it applies the Drupal Coding Standards and reports errors with a little red "x" on the side. But in Eclipse it is only working with .php files I have .module and .info files showing up with php syntax highlighting, but can't seem to get codesniffer to run against them. Any advice or a link to a tutorial would be fabulous.

Thank you.

Comments

I have the following extensions set

barnettech's picture

under properties->PHP CodeSniffer->File extensions I put in "php,module,inc,install,test,profile,theme" so I'm not sure why its not running the checks on non php files. I have this set on the whole eclipse install and on the project which is just for one module I'm working on.

It seems this is probably a bug with CodeSniffer itself

barnettech's picture

It seems this is probably a bug with CodeSniffer itself

See comment http://drupal.org/node/1414902#comment-5508020. I describe the workaround to use this with Eclipse. We'll probably submit this as a bug to CodeSniffer.

Code review for security advisory coverage applications

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: