From b77cb8ee77925b22d39b39490d5f07817ccb55cd Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 13 Sep 2024 11:30:23 +0200 Subject: [PATCH] plugins: add lint-acl pass --- Mk/plugins.mk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Mk/plugins.mk b/Mk/plugins.mk index ffaed1120..8796b4162 100644 --- a/Mk/plugins.mk +++ b/Mk/plugins.mk @@ -366,6 +366,15 @@ lint-model: done; \ done; fi +ACLBIN?= ${.CURDIR}/../../../core/Scripts/dashboard-acl.sh + +lint-acl: check +.if exists(${ACLBIN}) + @${ACLBIN} +.else + @echo "Did not find ACLBIN, please provide a core repository"; exit 1 +.endif + lint-exec: check .for DIR in ${.CURDIR}/src/opnsense/scripts ${.CURDIR}/src/etc/rc.d ${.CURDIR}/src/etc/rc.syshook.d .if exists(${DIR}) @@ -384,7 +393,7 @@ lint-php: check @echo "Did not find LINTBIN, please provide a core repository"; exit 1 .endif -lint: lint-desc lint-shell lint-xml lint-model lint-exec lint-php +lint: lint-desc lint-shell lint-xml lint-model lint-acl lint-exec lint-php plist-fix: