From 59072051c1194377fc301a273c4c77437b09d3b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zden=C4=9Bk=20Draho=C5=A1?= Date: Sat, 15 Oct 2016 10:17:04 +0200 Subject: [PATCH] Reports - searchable pdepend dependencies Inspired by dependencies in Qafoo https://github.com/Qafoo/QualityAnalyzer --- README.md | 2 +- app/report/pdepend.xsl | 90 +++++++++++++++++++++++++++++++++++--- app/report/phpqa.html.twig | 1 + src/CodeAnalysisTasks.php | 3 +- 4 files changed, 89 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d1e2b904..0fa67adc 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ Tool | `--output file` (default) - generated files | `--output cli` | phploc | [phploc.xml](https://edgedesigncz.github.io/phpqa/report/phploc.xml) | [✓](https://github.com/sebastianbergmann/phploc#analyse-a-directory-and-print-the-result) | phpcpd | [phpcpd.xml](https://edgedesigncz.github.io/phpqa/report/phpcpd.xml) | [✓](https://github.com/sebastianbergmann/phpcpd#usage-example) | phpcs | [checkstyle.xml](https://edgedesigncz.github.io/phpqa/report/checkstyle.xml) | [full report](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Reporting#printing-full-and-summary-reports) | -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-jdepend.svg](https://edgedesigncz.github.io/phpqa/report/pdepend-jdepend.svg), [pdepend-pyramid.svg](https://edgedesigncz.github.io/phpqa/report/pdepend-pyramid.svg) | ✗ | +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) | diff --git a/app/report/pdepend.xsl b/app/report/pdepend.xsl index ea32cd91..0f773e70 100644 --- a/app/report/pdepend.xsl +++ b/app/report/pdepend.xsl @@ -51,13 +51,13 @@ margin-right:2em; } - .fixed-links { + .fixed-navbar { list-style-type: none; position: fixed; - top: 3em; + top: 0; right: 1em; } - .fixed-links li { + .fixed-navbar li { display: inline-block; margin-left: 1ex; } @@ -100,6 +100,9 @@
  • Packages
  • +
  • + Dependencies +
  • Metrics
  • @@ -153,6 +156,9 @@
    +
    + +
    @@ -171,7 +177,7 @@ -