padosoft / static-review
Custom Static Review classes
Requires
- phpmd/phpmd: 2.*
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
- sjparkinson/static-review: 5.*
- squizlabs/php_codesniffer: 2.*
README
Custom Static Review classes
Table of Contents
- Custom Static Review classes
- Table of Contents
- Prerequisites
- Change Log
- Installation
- Example
- Contributing
- Security
- Credits
- About Padosoft
- License
PREREQUISITES
Prerequisites of package are "sjparkinson/static-review": "squizlabs/php_codesniffer": "phpunit/phpunit" "scrutinizer/ocular" "phpmd/phpmd"
installed as required in composer
create a new Hooks directory and copy pre-commit.php into from src/config folder.
$ mkdir hooks $ copy vendor/padosoft/static-review/src/config/pre-commit.php hooks/pre-commit.php
CHANGE LOG
Please see CHANGELOG for more information what has changed recently.
INSTALLATION
You can install the package via composer:
$ composer require padosoft/static-review
Open hooks/pre-commit.php in your root folder (created in PREREQUISITES above section) and add custom review. For example if you want to add VarDumpReview and DdReview:
$review->addReview(new LineEndingsReview()) //..... //..... //..... //..... ->addReview(new VarDumpReview()); ->addReview(new DdReview());
In the end, create a pre-commit hook, by running the following command:
create in .git/hooks a file named pre-commit like this **************************************************************** #!/bin/sh php.exe "hooks/pre-commit.php" **************************************************************** This for windows environment, for linux and mac you must use this **************************************************************** #!/bin/sh php "hooks/pre-commit.php" ****************************************************************
EXAMPLE
Screenshot esempio
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email instead of using the issue tracker.
Credits
About Padosoft
Padosoft is a software house based in Florence, Italy. Specialized in E-commerce and web sites.
License
The MIT License (MIT). Please see License File for more information.