Simple Bash script to automatically review project applications.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Simple Bash script to automatically review project applications. It takes a Git repository URL as argument, clones the code in a pareview_temp folder and runs some checks. Alternatively it takes a path to a module/theme project and checks that. The output is suitable for a comment in the Project Applications issue queue.

Online version



The script can be placed anywhere, for convenience you can add a link to one of the executable directories in your $PATH, e.g.:

sudo ln -s /path/to/downloaded/pareviewsh/ /usr/local/bin

Usage (running in a shell)



$> 6.x-1.x
$> sites/all/modules/rules

Bleeding edge installation of depedencies

If you always want to work with the newest version of Coder with Git clones (replace /home/klausi/workspace with your desired working directory):

cd /home/klausi/workspace
git clone --branch 8.x-2.x
git clone --branch master drupalsecure
git clone --branch master

Install composer dependencies:

cd /home/klausi/workspace/coder
composer install

Register the phpcs command globally:

sudo ln -s /home/klausi/workspace/coder/vendor/bin/phpcs /usr/local/bin

Register the Drupal standards with PHPCS:

phpcs --config-set installed_paths /home/klausi/workspace/coder/coder_sniffer,/home/klausi/workspace/drupalsecure

Register the codespell command globally:

cp /home/klausi/workspace/codespell/bin/codespell /home/klausi/workspace/codespell/codespell
sudo ln -s /home/klausi/workspace/codespell/codespell /usr/local/bin/codespell

Installing ESLint on Ubuntu:

sudo apt-get install npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo npm i -g eslint