style: expand sniffer now that src/opnsense/contrib is gone

This commit is contained in:
Franco Fichtner 2016-09-25 09:54:14 +02:00
parent 30d0c1760c
commit c91304c9a1
2 changed files with 4 additions and 2 deletions

View file

@ -295,7 +295,7 @@ sweep: force
xargs -0 -n1 scripts/cleanfile
style: want-pear-PHP_CodeSniffer
@(phpcs --standard=ruleset.xml ${.CURDIR}/src/opnsense/mvc \
@(phpcs --standard=ruleset.xml ${.CURDIR}/src/opnsense \
|| true) > ${.CURDIR}/.style.out
@echo -n "Total number of style warnings: "
@grep '| WARNING' ${.CURDIR}/.style.out | wc -l
@ -305,7 +305,7 @@ style: want-pear-PHP_CodeSniffer
@rm ${.CURDIR}/.style.out
style-fix: want-pear-PHP_CodeSniffer
phpcbf --standard=ruleset.xml ${.CURDIR}/src/opnsense/mvc || true
phpcbf --standard=ruleset.xml ${.CURDIR}/src/opnsense || true
setup: force
${.CURDIR}/src/etc/rc.php_ini_setup

View file

@ -3,4 +3,6 @@
<description>Slightly enhanced version of the PSR2 standard</description>
<rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
<rule ref="PSR2"/>
<exclude-pattern>*.css</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
</ruleset>