wmmlint rule for previous commit

No updates to mainline wml required.
This commit is contained in:
Anonymissimus 2012-03-29 15:28:34 +00:00
parent b63962cb5d
commit 3bbe460a4e

View file

@ -558,6 +558,13 @@ def validate_on_pop(tagstack, closer, filename, lineno):
if ancestor:
print '"%s", line %d: %s should have an inline SSF instead of using [filter_side]' % \
(filename, lineno, ancestor)
if closer == "object":
if attributes.get("unit_type") is not None:
print '"%s", line %d: use [object][filter]type= instead of [object]unit_type=' % \
(filename, lineno)
if attributes.get("unit_gender") is not None:
print '"%s", line %d: use [object][filter]gender= instead of [object]unit_gender=' % \
(filename, lineno)
def within(tag):
"Did the specified tag lead one of our enclosing contexts?"