wmmlint rule for previous commit
No updates to mainline wml required.
This commit is contained in:
parent
b63962cb5d
commit
3bbe460a4e
1 changed files with 7 additions and 0 deletions
|
@ -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?"
|
||||
|
|
Loading…
Add table
Reference in a new issue