Download the PHP package paysera/lib-arcanist-php-cs-extension without Composer
On this page you can find all versions of the php package paysera/lib-arcanist-php-cs-extension. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download paysera/lib-arcanist-php-cs-extension
More information about paysera/lib-arcanist-php-cs-extension
Files in paysera/lib-arcanist-php-cs-extension
Package lib-arcanist-php-cs-extension
Short Description Php Cs Fixer arcanist extension
License
Informations about the package lib-arcanist-php-cs-extension
lib-arcanist-php-cs-extension
This library integrates PHP CS Fixer as lint engine to arcanist
.
It allows developer to automatically run php-cs-fixer
on arc diff
.
Before installing library
To automatically configure your .arcconfig
add "Paysera\\Composer\\ArcConfigParser::parseArcConfig"
script to post-install-cmd
and post-update-cmd
or other scipts
- just make sure this script is executed on composer install
.
Installation
composer require --dev paysera/lib-arcanist-php-cs-extension
.- Make sure
.php_cs
file is in project directory. - Make sure
.arcconfig
file contains following configurable default entries:"lint.engine": "PhpCsFixerLintEngine"
"load": ["vendor/paysera/lib-arcanist-php-cs-extension/src/"]
"lint.php_cs_fixer.fix_paths" : ["src/"]
- list of directories to runphp-cs-fixer
on."lint.php_cs_fixer.php_cs_binary" : "{your-bin-dir}/php-cs-fixer"
- location forphp-cs-fixer
executable."lint.php_cs_fixer.php_cs_file": ".php_cs"
- location for.php_cs
file.
Example output
In case php-cs-fixer
found no problems:
If php-cs-fixer
reports errors, arcanist diff
will be displayed:
- * @param array $fixData
+ * @param array $fixData
+ *
- for ($i = 0; $i < count($rows); $i++) {
+ for ($i = 0; $i < count($rows); ++$i) {
If Excuse
message will be provided, these messages will be sent to Phabricator
.