diff options
author | Andreas Fischer <bantu@phpbb.com> | 2013-10-27 17:36:18 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2013-10-27 17:43:03 +0100 |
commit | e660d1bac1781e8d1506e6f5502008793a067bab (patch) | |
tree | 0aba77ae067fbb9ff1c415c27b81a2f5f90e21d4 /build | |
parent | c82979a4728195ddeb938e2d4e3252fc139f3525 (diff) | |
download | forums-e660d1bac1781e8d1506e6f5502008793a067bab.tar forums-e660d1bac1781e8d1506e6f5502008793a067bab.tar.gz forums-e660d1bac1781e8d1506e6f5502008793a067bab.tar.bz2 forums-e660d1bac1781e8d1506e6f5502008793a067bab.tar.xz forums-e660d1bac1781e8d1506e6f5502008793a067bab.zip |
[task/code-sniffer] Phing target for sniffing.
PHPBB3-11980
Diffstat (limited to 'build')
-rw-r--r-- | build/build.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/build/build.xml b/build/build.xml index 82bb979a02..9376f95143 100644 --- a/build/build.xml +++ b/build/build.xml @@ -74,6 +74,30 @@ passthru="true" /> </target> + <target name="sniff"> + <exec command="phpBB/vendor/bin/phpcs + -s + --extensions=php + --standard=build/code_sniffer/ruleset-php-legacy.xml + --ignore=phpBB/cache/* + --ignore=phpBB/develop/* + --ignore=phpBB/includes/diff/*.php + --ignore=phpBB/includes/sphinxapi.php + --ignore=phpBB/includes/utf/data/* + --ignore=phpBB/install/data/* + --ignore=phpBB/phpbb/* + --ignore=phpBB/vendor/* + phpBB" + dir="." passthru="true" /> + <exec command="phpBB/vendor/bin/phpcs + -s + --extensions=php + --standard=build/code_sniffer/ruleset-php-strict.xml + --ignore=phpBB/phpbb/db/migration/data/v30x/* + phpBB/phpbb" + dir="." passthru="true" /> + </target> + <target name="docs"> <!-- only works if you setup phpdoctor: git clone https://github.com/peej/phpdoctor.git |