PAReview.sh
Security covered
Simple Bash script is faster drupal-ci-local alternative (but without phpunit).
Features
- eslint
- phpcs
- phpstan
- stylelint
- cspell
- Check if README exists
- Check README sections
- Check if hook_help exists
- Check *.info.yml syntax
- And more small checks
- Faster than drupal-ci-local. 1 sec VS 2:30 min for example
Installation (tested on Ubuntu 22.04)
- Install nodejs 18
curl -s https://deb.nodesource.com/setup_18.x | sudo bash sudo apt install git php8.1-cli php8.1-mbstring php8.1-simplexml php8.1-curl- Install composer globally
- Download and extract pareviewsh. Go to pareviewsh folder
- Run
composer install
Usage
./pareview.sh GIT-URL [BRANCH]
./pareview.sh DIR-PATH
Examples:
./pareview.sh https://git.drupalcode.org/project/media_gallery.git
./pareview.sh https://git.drupalcode.org/project/media_gallery.git 2.0.x
./pareview.sh sites/all/modules/media_gallery
./pareview.sh web/modules/custom/media_gallery
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.