phpqa - exit code experiments

July 23, 2016 · View on GitHub

$ phpqa --tools phpcs [FileSystem\CleanDir] Cleaned build/ [FileSystem\FilesystemStack] mkdir ["build/"] [ParallelExec] /var/phpqa/vendor/bin/phpcs -p --extensions=php --standard=PSR2 --ignore=/vendor/ "./" --report=checkstyle --report-file="build//checkstyle.xml" 1/1 [============================] 100% [ParallelExec] '/var/phpqa/vendor/bin/phpcs -p --extensions=php --standard=PSR2 --ignore=/vendor/ "./" --report=checkstyle --report-file="build//checkstyle.xml"' exited with code 1 [ParallelExec] Exit code 1 Time 0.25s

[phpqa] +-------+----------------+--------------+--------+-------------+ | Tool | Allowed Errors | Errors count | Is OK? | HTML report | +-------+----------------+--------------+--------+-------------+ | phpcs | | 1 | ✓ | | +-------+----------------+--------------+--------+-------------+ | phpqa | | 1 | ✓ | | +-------+----------------+--------------+--------+-------------+

[phpqa] No failed tools

echoecho? 0

$ phpqa --tools phpcs:0 [FileSystem\CleanDir] Cleaned build/ [FileSystem\FilesystemStack] mkdir ["build/"] [ParallelExec] /var/phpqa/vendor/bin/phpcs -p --extensions=php --standard=PSR2 --ignore=/vendor/ "./" --report=checkstyle --report-file="build//checkstyle.xml" 1/1 [============================] 100% [ParallelExec] '/var/phpqa/vendor/bin/phpcs -p --extensions=php --standard=PSR2 --ignore=/vendor/ "./" --report=checkstyle --report-file="build//checkstyle.xml"' exited with code 1 [ParallelExec] Exit code 1 Time 0.286s

[phpqa] +-------+----------------+--------------+--------+-------------+ | Tool | Allowed Errors | Errors count | Is OK? | HTML report | +-------+----------------+--------------+--------+-------------+ | phpcs | 0 | 1 | x | | +-------+----------------+--------------+--------+-------------+ | phpqa | | 1 | x | | +-------+----------------+--------------+--------+-------------+

[phpqa] Failed tools: phpcs

echoecho? 1