mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[task/code-sniffer] Do not abort immediately on PHP Code Sniffer failure.
PHPBB3-11980
This commit is contained in:
parent
02e9f6e284
commit
387ed37b31
1 changed files with 11 additions and 2 deletions
|
@ -81,7 +81,7 @@
|
|||
--standard=build/code_sniffer/ruleset-php-strict.xml
|
||||
--ignore=phpBB/phpbb/db/migration/data/v30x/*
|
||||
phpBB/phpbb"
|
||||
dir="." checkreturn="true" passthru="true" />
|
||||
dir="." returnProperty="retval-php-strict" passthru="true" />
|
||||
<exec command="phpBB/vendor/bin/phpcs
|
||||
-s
|
||||
--extensions=php
|
||||
|
@ -95,7 +95,16 @@
|
|||
--ignore=phpBB/phpbb/*
|
||||
--ignore=phpBB/vendor/*
|
||||
phpBB"
|
||||
dir="." checkreturn="true" passthru="true" />
|
||||
dir="." returnProperty="retval-php-legacy" passthru="true" />
|
||||
<if>
|
||||
<or>
|
||||
<not><equals arg1="${retval-php-strict}" arg2="0" /></not>
|
||||
<not><equals arg1="${retval-php-legacy}" arg2="0" /></not>
|
||||
</or>
|
||||
<then>
|
||||
<fail message="PHP Code Sniffer failed." />
|
||||
</then>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<target name="docs">
|
||||
|
|
Loading…
Add table
Reference in a new issue