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 path="${basedir}/build/logs/phploc.csv" />
<arg value="--log-xml" /> <arg value="--log-xml" />
<arg path="${basedir}/build/logs/phploc.xml" /> <arg path="${basedir}/build/logs/phploc.xml" />
<arg path="${basedir}/lib/classes/" /> <arg path="${basedir}/lib/classes/api" />
<arg path="${basedir}/tests" /> <arg path="${basedir}/tests" />
</exec> </exec>

View File

@@ -1,10 +1,32 @@
<phpdox xmlns="http://xml.phpdox.net/config"> <phpdox xmlns="http://xml.phpdox.net/config">
<project name="froxlor" source="." workdir="build/phpdox"> <project name="froxlor" source="${basedir}/lib/classes/api"
<collector publiconly="true"> workdir="${basedir}/build/phpdox">
<collector publiconly="true" backend="parser">
<include mask="*.php" /> <include mask="*.php" />
</collector> </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"> <build engine="html" enabled="true" output="api">
<file extension="html" /> <file extension="html" />
</build> </build>