Use phpcs from vendor dir

We really do not want to use potentially older version installed on the
system.

See https://github.com/phpmyadmin/coding-standard/pull/5

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-09-28 13:32:18 +02:00
parent 904120952e
commit 656127c906

View File

@ -83,13 +83,13 @@
</target>
<target name="phpcs-config" description="PHPCS configuration tweaking">
<exec executable="phpcs">
<exec executable="${basedir}/vendor/bin/phpcs">
<arg line="--config-set installed_paths ${basedir}/vendor/phpmyadmin/coding-standard" />
</exec>
</target>
<target name="phpcs" description="Generate checkstyle.xml using PHP_CodeSniffer excluding third party libraries" depends="phpcs-config">
<exec executable="phpcs">
<exec executable="${basedir}/vendor/bin/phpcs">
<arg line="
--ignore=*/vendor/*,*/build/*,*/tmp/*
--report=checkstyle