2017 © Pedro Pelรกez
 

library cs

Perform code fix and review

image

funivan/cs

Perform code fix and review

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 5 Open issues
  • 2 Versions
  • 9 % Grown

The README.md

Code Style fix and review

Packagist Software License Build Status Coverage Status Quality Score Total Downloads, (*1)

Perform code fix and review, (*2)

Tools list

Fixer Review Link
โœ” โœ” Php open tags
โœ” โœ” Php line before class end
โœ” Php file start
โœ” Php closing tags
โœ” Php return type format
โœ” โœ” Php redundant Null property value
โœ” โœ” Spaces in empty lines
โœ” โœ” Line ending
โœ” Composer

Install

Via Composer, (*3)

``` bash composer require funivan/cs:dev-master, (*4)


## Usage ```sh # run review tool ./vendor/bin/cs.php review; # run fixer tool ./vendor/bin/cs.php fix;

Custom configuration

Create custom configuration file. For example cs-fix.php, (*5)

<?php
  # file cs-fix.php
  require __DIR__ . '/vendor/autoload.php';


  use Funivan\Cs\Configuration\CsConfiguration;

  $configuration = CsConfiguration::createFixerConfiguration();
  // You can set custom file finder
  // $configuration->setFileFinder(new MyProjectCustomFileFinder());

  // You can add custom tools
  // $configuration->setTool(new MyProjectCustomCheckTool());

Then run fixer, (*6)

  ./vendor/bin/cs.php fix --configuration=cs-fixer.php -vvv

Testing

bash ./vendor/bin/phpunit, (*7)

Contributing

Please see CONTRIBUTING for details., (*8)

Credits

License

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

The Versions

12/05 2017

dev-master

9999999-dev https://github.com/funivan/Cs

Perform code fix and review

  Sources   Download

MIT

The Requires

 

The Development Requires

static analysis code review review coding standards code style fixer code fix

11/05 2016

dev-scrutinizer-patch-1

dev-scrutinizer-patch-1 https://github.com/funivan/Cs

Perform code fix and review

  Sources   Download

MIT

The Requires

 

The Development Requires

static analysis code review review coding standards code style fixer code fix