remove the rule making wmllint putting side=...

...into set*,allow*,disallow_recruit,store_gold

Since it is valid syntax now (again, but defaulting to all sides).
This commit is contained in:
Anonymissimus 2012-02-14 21:23:06 +00:00
parent 21544198e1
commit 6419bb4841

View file

@ -547,9 +547,6 @@ def validate_on_pop(tagstack, closer, filename, lineno):
if closer == "unit" and attributes.get("id") is not None and attributes.get("type") is not None and attributes.get("side") is None and not "side" in ancestors:
print '"%s", line %d: unit declaration without side attribute' % \
(filename, lineno)
if closer in ["set_recruit", "allow_recruit", "disallow_recruit", "store_gold"] and "side" not in attributes:
print '"%s", line %d: %s requires "side" attribute but has none' % \
(filename, lineno, closer)
def within(tag):
"Did the specified tag lead one of our enclosing contexts?"