From a325ce8487bae445c4ca4369c433d6cebf1a374d Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 15 Dec 2017 06:36:35 +0000 Subject: [PATCH] make: add plugins.inc.d to style and style-fix targets The code has been pruned, time to give it a finishing touch. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 399cfaa88..77ef4a5f1 100644 --- a/Makefile +++ b/Makefile @@ -302,8 +302,10 @@ sweep: force xargs -0 -n1 ${.CURDIR}/Scripts/cleanfile style: want-pear-PHP_CodeSniffer - @(phpcs --standard=ruleset.xml ${.CURDIR}/src/opnsense \ + @(phpcs --standard=ruleset.xml ${.CURDIR}/src/etc/inc/plugins.inc.d \ || true) > ${.CURDIR}/.style.out + @(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 @echo -n "Total number of style errors: " @@ -312,6 +314,7 @@ style: want-pear-PHP_CodeSniffer @rm ${.CURDIR}/.style.out style-fix: want-pear-PHP_CodeSniffer + phpcbf --standard=ruleset.xml ${.CURDIR}/src/etc/inc/plugins.inc.d || true phpcbf --standard=ruleset.xml ${.CURDIR}/src/opnsense || true license: