User tests: Successful: Unsuccessful:
This PR adds a public task to run some code checker tools, namely phpmd
, phpcs
and phpcpd
.
Later on, if we refactor the Robofile.php, they will probably be moved outside it and into the shared tasks.
To execute any of the given tool, you execute:
vendor/bin/robo run:checker [checkername]
e.g.
vendor/bin/robo run:checker phpmd
Run the following commands and make sure you get some result:
vendor/bin/robo run:checker phpmd
vendor/bin/robo run:checker phpcs
vendor/bin/robo run:checker phpcpd
src/
folder.@Kubik-Rubik I updated the original description with more details.
@therunnergit This is great, thank you for the explanation and improvement. Works as described!
@javigomez improved documentation and used \Robo\Result instead of straight exit codes.
Works with the last change properly!
Milestone |
Added: 3.4.2 |
Thank you @therunnergit! Merged.
Can you please explain in more detail how to test it with one of the checker tools?