Cleanup build.xml phpcs target
This commit is contained in:
parent
ab6c4fc850
commit
19bbec71de
17
build.xml
17
build.xml
|
@ -187,12 +187,25 @@
|
|||
|
||||
<!-- Run PHP Code Sniffer -->
|
||||
<target name="phpcs">
|
||||
<exec command="phpcs --standard=Kohana --ignore=*.js,*.css,**/vendor/**,**/tests/**,**/unittest/** ${basedir}" passthru="true"/>
|
||||
<phpcodesniffer standard="Kohana" showSniffs="true" showWarnings="true">
|
||||
<fileset dir="${basedir}">
|
||||
<include name="**/*.php" />
|
||||
<exclude name="**/vendor/**" />
|
||||
</fileset>
|
||||
<formatter type="default" usefile="false"/>
|
||||
</phpcodesniffer>
|
||||
</target>
|
||||
|
||||
<!-- Run PHP Code Sniffer and generate checkstyle.xml -->
|
||||
<target name="phpcs-log">
|
||||
<exec command="phpcs --standard=Kohana --ignore=*.js,*.css,**/vendor/**,**/tests/**,**/unittest/** --report=checkstyle --report-file=${builddir}/logs/checkstyle.xml ${basedir}" passthru="false"/>
|
||||
<phpcodesniffer standard="Kohana" showSniffs="true" showWarnings="true">
|
||||
<fileset dir="${basedir}">
|
||||
<include name="**/*.php" />
|
||||
<exclude name="**/vendor/**" />
|
||||
</fileset>
|
||||
<formatter type="default" usefile="false"/>
|
||||
<formatter type="checkstyle" outfile="${builddir}/logs/checkstyle.xml"/>
|
||||
</phpcodesniffer>
|
||||
</target>
|
||||
|
||||
<!-- Run PHP Mess Detector -->
|
||||
|
|
Loading…
Reference in a new issue