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:
parent
904120952e
commit
656127c906
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user