wmllint: Add check for deprecated [theme] name= usage

This commit is contained in:
Ignacio R. Morelle 2014-02-20 01:53:11 -03:00
parent a15f89e873
commit d16ec0cf9e

View file

@ -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: