When i follow the documentation i set a level, but got an error :
php_cs_fixer:
verbose: true
allow_failures: true
diff: true
level: "psr2"
give :
RUNNING PLUGIN: PHP Coding Standards Fixer (Stage: Test)
[Symfony\Component\Console\Exception\RuntimeException]
The "--level" option does not exist.
Exception trace:
() at /vendor/symfony/console/Input/ArgvInput.php:219
Symfony\Component\Console\Input\ArgvInput->addLongOption() at /vendor/symfony/console/Input/ArgvInput.php:153
Symfony\Component\Console\Input\ArgvInput->parseLongOption() at /vendor/symfony/console/Input/ArgvInput.php:84
Symfony\Component\Console\Input\ArgvInput->parse() at /vendor/symfony/console/Input/Input.php:63
Symfony\Component\Console\Input\Input->bind() at /vendor/symfony/console/Command/Command.php:222
Symfony\Component\Console\Command\Command->run() at /vendor/symfony/console/Application.php:826
Symfony\Component\Console\Application->doRunCommand() at /vendor/symfony/console/Application.php:189
Symfony\Component\Console\Application->doRun() at /vendor/symfony/console/Application.php:120
Symfony\Component\Console\Application->run() at /vendor/friendsofphp/php-cs-fixer/php-cs-fixer:55
fix [--path-mode PATH-MODE] [--allow-risky ALLOW-RISKY] [--config CONFIG] [--dry-run] [--rules RULES] [--using-cache USING-CACHE] [--cache-file CACHE-FILE] [--diff] [--format FORMAT] [--stop-on-violation] [--show-progress SHOW-PROGRESS] [--] [<path>]...
Exception: Warning: chdir(): No such file or directory (errno 2) in /data/htdocs/phpci/src/PHPCensor/Plugin/PhpCsFixer.php line 55
PLUGIN: FAILED (ALLOWED)
Why need to set a workingdir, can we simply use BUILD_PATH and take into account the ignored path ?
php_cs_fixer:
verbose: true
allow_failures: true
diff: true
workingdir: "%BUILD_PATH%"
give :
RUNNING PLUGIN: PHP Coding Standards Fixer (Stage: Test)
Plugin options: {"verbose":true,"allow_failures":true,"diff":true,"workingdir":"%BUILD_PATH%"}
Exception: Warning: chdir(): No such file or directory (errno 2) in /data/htdocs/phpci/src/PHPCensor/Plugin/PhpCsFixer.php line 48
PLUGIN: FAILED (ALLOWED)
When i follow the documentation i set a level, but got an error :
give :
RUNNING PLUGIN: PHP Coding Standards Fixer (Stage: Test) [Symfony\Component\Console\Exception\RuntimeException] The "--level" option does not exist. Exception trace: () at /vendor/symfony/console/Input/ArgvInput.php:219 Symfony\Component\Console\Input\ArgvInput->addLongOption() at /vendor/symfony/console/Input/ArgvInput.php:153 Symfony\Component\Console\Input\ArgvInput->parseLongOption() at /vendor/symfony/console/Input/ArgvInput.php:84 Symfony\Component\Console\Input\ArgvInput->parse() at /vendor/symfony/console/Input/Input.php:63 Symfony\Component\Console\Input\Input->bind() at /vendor/symfony/console/Command/Command.php:222 Symfony\Component\Console\Command\Command->run() at /vendor/symfony/console/Application.php:826 Symfony\Component\Console\Application->doRunCommand() at /vendor/symfony/console/Application.php:189 Symfony\Component\Console\Application->doRun() at /vendor/symfony/console/Application.php:120 Symfony\Component\Console\Application->run() at /vendor/friendsofphp/php-cs-fixer/php-cs-fixer:55 fix [--path-mode PATH-MODE] [--allow-risky ALLOW-RISKY] [--config CONFIG] [--dry-run] [--rules RULES] [--using-cache USING-CACHE] [--cache-file CACHE-FILE] [--diff] [--format FORMAT] [--stop-on-violation] [--show-progress SHOW-PROGRESS] [--] [<path>]... Exception: Warning: chdir(): No such file or directory (errno 2) in /data/htdocs/phpci/src/PHPCensor/Plugin/PhpCsFixer.php line 55 PLUGIN: FAILED (ALLOWED)Why need to set a workingdir, can we simply use BUILD_PATH and take into account the ignored path ?
give :