mirror of
https://github.com/opnsense/core.git
synced 2026-02-18 18:18:13 -05:00
style: expand sniffer now that src/opnsense/contrib is gone
This commit is contained in:
parent
30d0c1760c
commit
c91304c9a1
2 changed files with 4 additions and 2 deletions
4
Makefile
4
Makefile
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue