2017 © Pedro Peláez
 

library static-review

Custom Static Review classes

image

padosoft/static-review

Custom Static Review classes

  • Wednesday, August 9, 2017
  • by lopadova
  • Repository
  • 2 Watchers
  • 0 Stars
  • 37 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

static-review

Custom Static Review classes, (*1)

Latest Version on Packagist ![Software License][ico-license] ![Quality Score][ico-code-quality] Total Downloads SensioLabsInsight, (*2)

Table of Contents

PREREQUISITES

Prerequisites of package are "sjparkinson/static-review": "squizlabs/php_codesniffer": "phpunit/phpunit" "scrutinizer/ocular" "phpmd/phpmd", (*3)

installed as required in composer, (*4)

create a new Hooks directory and copy pre-commit.php into from src/config folder., (*5)

``` bash $ mkdir hooks $ copy vendor/padosoft/static-review/src/config/pre-commit.php hooks/pre-commit.php, (*6)


# CHANGE LOG Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. # INSTALLATION You can install the package via composer: ``` bash $ 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:, (*7)

``` php $review->addReview(new LineEndingsReview()) //..... //..... //..... //..... ->addReview(new VarDumpReview()); ->addReview(new DdReview());, (*8)


In the end, create a pre-commit hook, by running the following command: ``` bash 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., (*9)

Security

If you discover any security related issues, please email instead of using the issue tracker., (*10)

Credits

About Padosoft

Padosoft is a software house based in Florence, Italy. Specialized in E-commerce and web sites., (*11)

License

The MIT License (MIT). Please see License File for more information., (*12)

The Versions

09/08 2017
08/03 2016

1.1.0

1.1.0.0 https://github.org/padosoft/static-review/

Custom Static Review classes

  Sources   Download

MIT

The Requires

 

The Development Requires

git pre-commit commit code quality static-review

24/02 2016

1.0.2

1.0.2.0 https://github.org/padosoft/static-review/

Custom Static Review classes

  Sources   Download

MIT

The Requires

 

The Development Requires

git pre-commit commit code quality static-review

24/02 2016

1.0.1

1.0.1.0 https://github.org/padosoft/static-review/

Custom Static Review classes

  Sources   Download

MIT

The Requires

 

The Development Requires

git pre-commit commit code quality static-review

22/02 2016

1.0.0

1.0.0.0 https://github.org/padosoft/static-review/

Custom Static Review classes

  Sources   Download

MIT

The Requires

 

The Development Requires

git pre-commit commit code quality static-review

21/02 2016

0.0.1

0.0.1.0 https://github.org/padosoft/static-review/

Custom Static Review classes

  Sources   Download

MIT

The Requires

 

The Development Requires

git pre-commit commit code quality static-review