mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
make: work around destructive replacement pattern in style-model
Add a lint-model check for this so it's avoided in the future.
This commit is contained in:
parent
821eeb4ab9
commit
69ac3ce299
3
Makefile
3
Makefile
@ -378,6 +378,9 @@ lint-model:
|
||||
(xmllint $${MODEL} --xpath '//*[@type and not(@type="ArrayField") and BlankDesc and Multiple="Y"]' 2> /dev/null | grep '^<' || true) | while read LINE; do \
|
||||
echo "$${MODEL}: $${LINE} blank description not applicable on multiple field"; \
|
||||
done; \
|
||||
(xmllint $${MODEL} --xpath '//*[@type and not(@type="ArrayField") and OptionValues[default[not(@value)] or multiple[not(@value)] or required[not(@value)]]]' 2> /dev/null | grep '^<' || true) | while read LINE; do \
|
||||
echo "$${MODEL}: $${LINE} option element default/multiple/required without value attribute"; \
|
||||
done; \
|
||||
done
|
||||
|
||||
SCRIPTDIRS!= find ${.CURDIR}/src/opnsense/scripts -type d -depth 1
|
||||
|
||||
@ -66,7 +66,7 @@
|
||||
<Required>Y</Required>
|
||||
<default>alert</default>
|
||||
<OptionValues>
|
||||
<default>Default</default>
|
||||
<default value="default">Default</default>
|
||||
<alert>Alert</alert>
|
||||
<drop>Drop</drop>
|
||||
<disable>Disable</disable>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user