Skip to content

Commit

Permalink
Update ant build target for phpcs
Browse files Browse the repository at this point in the history
[ci skip]
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Nov 13, 2020
1 parent ba05ef0 commit 029888a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build.xml
Expand Up @@ -76,18 +76,15 @@

<target name="phpcs-config" description="PHPCS configuration tweaking">
<exec executable="${basedir}/vendor/bin/phpcs">
<arg line="--config-set installed_paths ${basedir}/vendor/phpmyadmin/coding-standard" />
<arg line="--config-set installed_paths ${basedir}/vendor/doctrine/coding-standard/lib,${basedir}/vendor/phpmyadmin/coding-standard,${basedir}/vendor/slevomat/coding-standard" />
</exec>
</target>

<target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer excluding third party libraries" depends="phpcs-config">
<exec executable="${basedir}/vendor/bin/phpcs">
<arg line="
--ignore=*/vendor/*,*/build/*,*/tmp/*
--report=checkstyle
--extensions=php
--report-file='${basedir}/build/logs/checkstyle.xml'
--standard=PhpMyAdmin
${source}" />
</exec>
</target>
Expand Down

0 comments on commit 029888a

Please sign in to comment.