PAReview.sh is a "simple Bash script to automatically review Drupal.org project applications," but it's useful for any module developer. It runs Coder and Drupal Code Sniffer on a module directory or Git repository and outputs a report on the command line. (See the online version for examples.) It eases the burden of testing best practices, and I'd like to see more people use it.

Attached is an install script. (You'll have to rename it to ".sh", because Drupal.org won't allow uploads to have that extension.) It installs PAReview.sh and Drupal Code Sniffer under ~/ for global use. (Note: Drupal Code Sniffer can be integrated into both Eclipse and Netbeans, but I haven't done so yet and don't know if it could be scripted.) Drupal Coder drupalcs reduced must be enabled on an active site to run the Coder tests against it.

Feedback?

Comments

traviscarden’s picture

StatusFileSize
new1.86 KB

Yick. The file had Windows line-endings; sorry. Here's a patch to add the script to ~/quickstart/contrib instead—probably a better approach anyway.

rafamd’s picture

Useful thing ... I already have it on my quickstart machine

mike stewart’s picture

Assigned: Unassigned » mike stewart

Reviewing. Plan to add this week.

mike stewart’s picture

Status: Needs review » Fixed

committed to 7.x-2.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.