Skip to content

Commit c91304c

Browse files
committed
style: expand sniffer now that src/opnsense/contrib is gone
1 parent 30d0c17 commit c91304c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ sweep: force
295295
xargs -0 -n1 scripts/cleanfile
296296

297297
style: want-pear-PHP_CodeSniffer
298-
@(phpcs --standard=ruleset.xml ${.CURDIR}/src/opnsense/mvc \
298+
@(phpcs --standard=ruleset.xml ${.CURDIR}/src/opnsense \
299299
|| true) > ${.CURDIR}/.style.out
300300
@echo -n "Total number of style warnings: "
301301
@grep '| WARNING' ${.CURDIR}/.style.out | wc -l
@@ -305,7 +305,7 @@ style: want-pear-PHP_CodeSniffer
305305
@rm ${.CURDIR}/.style.out
306306

307307
style-fix: want-pear-PHP_CodeSniffer
308-
phpcbf --standard=ruleset.xml ${.CURDIR}/src/opnsense/mvc || true
308+
phpcbf --standard=ruleset.xml ${.CURDIR}/src/opnsense || true
309309

310310
setup: force
311311
${.CURDIR}/src/etc/rc.php_ini_setup

ruleset.xml

+2
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
<description>Slightly enhanced version of the PSR2 standard</description>
44
<rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
55
<rule ref="PSR2"/>
6+
<exclude-pattern>*.css</exclude-pattern>
7+
<exclude-pattern>*.js</exclude-pattern>
68
</ruleset>

0 commit comments

Comments
 (0)