wmllint: Add check for deprecated [theme] name= usage
This commit is contained in:
parent
a15f89e873
commit
d16ec0cf9e
1 changed files with 3 additions and 0 deletions
|
@ -609,6 +609,9 @@ 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 == "theme" and "id" not in attributes:
|
||||
if "name" in attributes:
|
||||
print '"%s", line %d: using [theme]name= instead of [theme]id= is deprecated' % (filename, lineno)
|
||||
if closer == "filter_side":
|
||||
ancestor = False
|
||||
if "gold" in ancestors:
|
||||
|
|
Loading…
Add table
Reference in a new issue