enhance phpdox config

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-03-02 18:25:06 +01:00
parent cadb6618ec
commit 1605d2af07
2 changed files with 26 additions and 4 deletions

View File

@@ -98,7 +98,7 @@
<arg path="${basedir}/build/logs/phploc.csv" />
<arg value="--log-xml" />
<arg path="${basedir}/build/logs/phploc.xml" />
<arg path="${basedir}/lib/classes/" />
<arg path="${basedir}/lib/classes/api" />
<arg path="${basedir}/tests" />
</exec>

View File

@@ -1,10 +1,32 @@
<phpdox xmlns="http://xml.phpdox.net/config">
<project name="froxlor" source="." workdir="build/phpdox">
<collector publiconly="true">
<project name="froxlor" source="${basedir}/lib/classes/api"
workdir="${basedir}/build/phpdox">
<collector publiconly="true" backend="parser">
<include mask="*.php" />
</collector>
<generator output="build">
<generator output="${basedir}/build">
<enrich base="${basedir}/build">
<!-- add phploc output -->
<source type="phploc">
<file name="logs/phploc.xml" />
</source>
<!-- PHP Code Sniffer findings -->
<source type="phpcs">
<file name="logs/checkstyle.xml" />
</source>
<!-- PHPMessDetector -->
<source type="pmd">
<file name="logs/pmd.xml" />
</source>
<!-- PHPUnit Coverage XML
<source type="phpunit">
</source>
-->
</enrich>
<build engine="html" enabled="true" output="api">
<file extension="html" />
</build>