Advertising sustains the DA. Ads are hidden for members. Join today

Contributed module documentation

Code Review Module

Coder is the code review module. The name coder has a double meaning: a "coder" is obviously someone who writes code, and "code-r" is short for "code review".

Coder Sniffer is the part of Coder that can be run standalone from the command line and can be integrated with many IDEs.

Code Review Module - Coder

Coder is the code review module. The name coder has a double meaning: a "coder" is obviously someone who writes code, and "code-r" is short

Coder

Coder is a tool to help write code for Drupal or its modules. It can detect and automatically fix coding standard errors.

Contributing to Coder

Coder is not perfect (yet) and you can contribute towards making it better. There are two parts to the coder_sniffer system - a part

Eclipse Integration

Follow these steps to integrate Drupal Code Sniffer into Eclipse.

Installing Coder

Coder installation instructions with Composer

Installing Drupal Code Sniffer on Vim, Sublime Text, Visual Studio Code, Komodo, TextMate, Atom, Emacs & Geany

Directions how to integrate Drupal Code Sniffer into:

Netbeans Integration

To integrate Drupal Code Sniffer into Netbeans you need the following:

PHP CodeSniffer - Command Line Usage

First make sure that you installed Coder and PHPCS correctly by following the installation instructions.

Using Git hooks with Drupal code sniffer

I suggest using git hooks to automate code reviews for team development.

Using coder.module to auto-format your code with drush

Coder.module comes with a couple of drush plugins that let you repair things directly from the commandline - a great thing to try before

Guide maintainers

douggreen's picture
mehrpadin's picture