Download the PHP package rlweb/phpcs-for-legacy without Composer
On this page you can find all versions of the php package rlweb/phpcs-for-legacy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rlweb/phpcs-for-legacy
More information about rlweb/phpcs-for-legacy
Files in rlweb/phpcs-for-legacy
Download rlweb/phpcs-for-legacy
More information about rlweb/phpcs-for-legacy
Files in rlweb/phpcs-for-legacy
Vendor rlweb
Package phpcs-for-legacy
Short Description Bring old codebases to new standards
License MIT
Package phpcs-for-legacy
Short Description Bring old codebases to new standards
License MIT
Please rate this library. Is it a good library?
Informations about the package phpcs-for-legacy
PHPCS for Legacy codebases
Can't get a monolitic code base up to scratch but would like incremental progress. PHPCS for legacy allows new standards to be implemented incrementally, by only enforcing them on new / edited code via checking the git diff output.
Install
With composer simply composer require -dev rlweb/phpcs-for-legacy.
Usage
By running you initate the binary vendor/bin/phpcslegacy run
How it works
- Firstly gets a output of
git diff head - Transforms the patch output into a useful array of
[filePath => [1,2,3,...]to changed lines. For each changed line, we include the previous and the next line. - Then it will run the PHPCS command against these files
- And then create a diff of the issues on the lines.
And output these only!
All versions of phpcs-for-legacy with dependencies
PHP Build Version
Package Version
Requires
php Version
>7
ext-json Version *
symfony/console Version ~3.4|~4.0
symfony/process Version ~3.4|~4.0
squizlabs/php_codesniffer Version 3.*
ext-json Version *
symfony/console Version ~3.4|~4.0
symfony/process Version ~3.4|~4.0
squizlabs/php_codesniffer Version 3.*
The package rlweb/phpcs-for-legacy contains the following files
Loading the files please wait ...