mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[task/code-sniffer] Phing target for sniffing.
PHPBB3-11980
This commit is contained in:
parent
c82979a472
commit
e660d1bac1
1 changed files with 24 additions and 0 deletions
|
@ -74,6 +74,30 @@
|
||||||
passthru="true" />
|
passthru="true" />
|
||||||
</target>
|
</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">
|
<target name="docs">
|
||||||
<!-- only works if you setup phpdoctor:
|
<!-- only works if you setup phpdoctor:
|
||||||
git clone https://github.com/peej/phpdoctor.git
|
git clone https://github.com/peej/phpdoctor.git
|
||||||
|
|
Loading…
Add table
Reference in a new issue