Git Product home page Git Product logo

pareviewsh's Introduction

PAReview.sh

Simple Bash script to automatically review Drupal.org 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

http://pareview.sh

Intallation

Requirements:

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/pareview.sh /usr/local/bin

Usage (running in a shell)

$> pareview.sh GIT-URL [BRANCH]
$> pareview.sh DIR-PATH

Examples:

$> pareview.sh http://git.drupal.org/project/rules.git
$> pareview.sh http://git.drupal.org/project/rules.git 6.x-1.x
$> pareview.sh 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 http://git.drupal.org/project/coder.git
git clone --branch master http://git.drupal.org/sandbox/coltrane/1921926.git drupalsecure
git clone --branch master https://github.com/lucasdemarchi/codespell.git

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.py /home/klausi/workspace/codespell/codespell.py
sudo ln -s /home/klausi/workspace/codespell/codespell.py /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

pareviewsh's People

Contributors

klausi avatar mpdonadio avatar naveenvalecha avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.