Skip to content

Instantly share code, notes, and snippets.

@zdenekdrahos
Created July 23, 2016 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zdenekdrahos/5368eea304ed3fa6070bc77772779738 to your computer and use it in GitHub Desktop.
Save zdenekdrahos/5368eea304ed3fa6070bc77772779738 to your computer and use it in GitHub Desktop.
phpqa - exit code experiments
$ 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
$ echo $?
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
$ echo $?
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment