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?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | quickstart-1490036-1.patch | 1.86 KB | traviscarden |
| quickstart-install-pareview.sh_.txt | 865 bytes | traviscarden |
Comments
Comment #1
traviscarden commentedYick. The file had Windows line-endings; sorry. Here's a patch to add the script to
~/quickstart/contribinstead—probably a better approach anyway.Comment #2
rafamd commentedUseful thing ... I already have it on my quickstart machine
Comment #3
mike stewart commentedReviewing. Plan to add this week.
Comment #4
mike stewart commentedcommitted to 7.x-2.x