Last updated March 15, 2013. Created by das-peter on January 28, 2012.
Edited by acouch, benjifisher, arnested, jhedstrom. Log in to edit this page.
Directions how to integrate Drupal Code Sniffer into:
-
Vim
See this great blog post on this. http://echodittolabs.org/drupal-coding-standards-vim-code-sniffer-syntas... The Vimrc project includes the needed Vim configuration: you will still have to install Drupal Code Sniffer and the Syntastic plugin for vim.
-
Sublime Text
See this github repository. https://github.com/sirkitree/DrupalCodingStandard
-
Komodo
See this blog post on this. http://blog.8bitplateau.net/drupa-code-sniffer-komodo/
-
TextMate
See: http://nuams.com/blog/installing-drupal-code-sniffer-textmate
-
Emacs
Details on running phpcs from within Emacs: http://pear.php.net/manual/en/package.php.php-codesniffer.reporting.php (scroll down to the Printing an Emacs Report section, and be sure to replace the
--standard=PEARbit of the command with--standard=Drupal.
You can also integrate phpcs/drupalcs with Emacs' flymake-mode, see http://marmalade-repo.org/packages/flymake-phpcs.