From 846450f9c4e9281ecd2ac72b5e2eb6bf290b136e Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 19 Jan 2026 05:09:07 +0100 Subject: [PATCH] make: add a lint pass for CSVListField without a Mask Eventually these fields should all die and if not at least all use a mask with mask-per-item set to reduce complexity. --- Mk/lint.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Mk/lint.mk b/Mk/lint.mk index f327dc611f..fcb47c0b39 100644 --- a/Mk/lint.mk +++ b/Mk/lint.mk @@ -81,6 +81,9 @@ lint-model: (xmllint $${MODEL} --xpath '//*[@type="CSVListField" and Mask and (not(MaskPerItem) or MaskPerItem=N)]' 2> /dev/null | grep '^<' || true) | while read LINE; do \ echo "$${MODEL}: $${LINE} uses Mask regex with MaskPerItem=N"; \ done; \ + (xmllint $${MODEL} --xpath '//*[@type="CSVListField" and not(Mask)]' 2> /dev/null | grep '^<' || true) | while read LINE; do \ + echo "$${MODEL}: $${LINE} does not specify a Mask regex"; \ + done; \ for TYPE in .\\AliasesField .\\DomainIPField HostnameField IPPortField NetworkField MacAddressField .\\RangeAddressField; do \ (xmllint $${MODEL} --xpath '//*[@type="'$${TYPE}'" and FieldSeparator=","]' 2> /dev/null | grep '^<' || true) | while read LINE; do \ echo "$${MODEL}: $${LINE} FieldSeparator=, is the default"; \