diff --git a/.travis.yml b/.travis.yml index cab5494a..6b88f2be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ install: - if [ -n "$GITHUB_OAUTH_TOKEN" ]; then composer config github-oauth.github.com ${GITHUB_OAUTH_TOKEN}; fi; - composer install --no-interaction # test app with symfony3 components in latest php - - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then composer update && composer require sebastian/phpcpd:dev-master; fi + - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then composer update && composer require sebastian/phpcpd:dev-master && bin/suggested-tools.sh install; fi script: - vendor/phpunit/phpunit/phpunit - bin/ci.sh diff --git a/README.md b/README.md index cdc51866..41b016f8 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,17 @@ Tool| Description [phpmd](https://github.com/phpmd/phpmd) | Scan PHP project for messy code | [phpmetrics](https://github.com/Halleck45/PhpMetrics) | Static analysis tool for PHP | +##### Suggested tools + +Newly added tools aren't preinstalled. You have to install relevant composer packages if +you want to use. + +Tool | Supported since | Description | +---- | --------------- |----------- | +[parallel-lint](https://github.com/JakubOnderka/PHP-Parallel-Lint) | `>= 1.9` | Check syntax of PHP files | + +_Tip_: use [`bin/suggested-tools.sh install`](/bin/suggested-tools.sh) for installing the tools. + ## Install ### Without composer @@ -124,6 +135,7 @@ phpcs | [checkstyle.xml](https://edgedesigncz.github.io/phpqa/report/checkstyle. pdepend | [pdepend-jdepend.xml](https://edgedesigncz.github.io/phpqa/report/pdepend-jdepend.xml), [pdepend-summary.xml](https://edgedesigncz.github.io/phpqa/report/pdepend-summary.xml), [pdepend-dependencies.xml](https://edgedesigncz.github.io/phpqa/report/pdepend-dependencies.xml), [pdepend-jdepend.svg](https://edgedesigncz.github.io/phpqa/report/pdepend-jdepend.svg), [pdepend-pyramid.svg](https://edgedesigncz.github.io/phpqa/report/pdepend-pyramid.svg) | ✗ | phpmd | [phpmd.xml](https://edgedesigncz.github.io/phpqa/report/phpmd.xml) | [✓](https://github.com/phpmd/phpmd/blob/master/src/main/php/PHPMD/Renderer/TextRenderer.php#L47) | phpmetrics | [phpmetrics.html](https://edgedesigncz.github.io/phpqa/report/phpmetrics.html), [phpmetrics.xml](https://edgedesigncz.github.io/phpqa/report/phpmetrics.xml) | [✓](https://github.com/phpmetrics/PhpMetrics#usage) | +parallel-lint | [parallel-lint.html](https://edgedesigncz.github.io/phpqa/report/parallel-lint.html) | [✓](https://github.com/JakubOnderka/PHP-Parallel-Lint#example-output) | ## Exit code @@ -140,7 +152,7 @@ or [Circle CI](https://circleci.com/docs/manually/#overview) build should fail w Define number of allowed errors for each tools and watch the build: ```bash -phpqa --report --tools phpcs:0,phpmd:0,phpcpd:0,phpmetrics,phploc,pdepend +phpqa --report --tools phpcs:0,phpmd:0,phpcpd:0,parallel-lint:0,phpmetrics,phploc,pdepend ``` **File mode** diff --git a/app/report/cli.html.twig b/app/report/cli.html.twig new file mode 100644 index 00000000..fdb77726 --- /dev/null +++ b/app/report/cli.html.twig @@ -0,0 +1,20 @@ +

Parallel Lint

+
{{ process.getOutput() }}{{ process.getErrorOutput() }}
+ + + + diff --git a/app/report/phpqa.html.twig b/app/report/phpqa.html.twig index be37a204..ae8ded6b 100644 --- a/app/report/phpqa.html.twig +++ b/app/report/phpqa.html.twig @@ -88,6 +88,7 @@ set tabs = {