wmllint rule for the 2 deprecations in my latest revisions
No changes to mainline needed. These were only valid for almost one year however.
This commit is contained in:
parent
5e311eb9b5
commit
5d0284a513
1 changed files with 9 additions and 0 deletions
|
@ -547,6 +547,15 @@ 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 == "filter_side":
|
||||
ancestor = False
|
||||
if "gold" in ancestors:
|
||||
ancestor = "gold"
|
||||
elif "modify_ai" in ancestors:
|
||||
ancestor = "modify_ai"
|
||||
if ancestor:
|
||||
print '"%s", line %d: %s should have an inline SSF instead of using [filter_side]' % \
|
||||
(filename, lineno, ancestor)
|
||||
|
||||
def within(tag):
|
||||
"Did the specified tag lead one of our enclosing contexts?"
|
||||
|
|
Loading…
Add table
Reference in a new issue