Commit c91304c9 authored by Franco Fichtner's avatar Franco Fichtner

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

parent 30d0c176
......@@ -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
......
......@@ -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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment