From 75b2dfcc4c12455c7d40b224e47f146d44e6d92b Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Tue, 30 Dec 2014 07:29:02 +1100 Subject: [PATCH] Don't show ellipsecheck warning if ellipse=none --- data/tools/wmllint | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/tools/wmllint b/data/tools/wmllint index 7187180cf9ec..ab227901ceee 100755 --- a/data/tools/wmllint +++ b/data/tools/wmllint @@ -1334,7 +1334,7 @@ def global_sanity_check(filename, lines): (key, prefix, value, comment) = parse_attribute(lines[i]) if key == "ellipse" and value in ("misc/ellipse-nozoc","misc/ellipse-leader"): print '"%s", line %d: [effect] apply_to=ellipse needs to be removed' % (filename, i+1) - elif key == "ellipse" and value not in ("misc/ellipse","misc/ellipse-hero"): + elif key == "ellipse" and value not in ("none","misc/ellipse","misc/ellipse-hero"): print '"%s", line %d: custom ellipse %s may need to be updated' % (filename, i+1, value) except TypeError: # this is needed to handle tags, that parse_attribute cannot split pass @@ -1343,7 +1343,7 @@ def global_sanity_check(filename, lines): (key, prefix, value, comment) = parse_attribute(lines[i]) if key == "ellipse" and value in ("misc/ellipse-nozoc","misc/ellipse-leader"): print '"%s", line %d: %s=%s needs to be removed' % (filename, i+1, key, value) - elif key == "ellipse" and value not in ("misc/ellipse","misc/ellipse-hero"): + elif key == "ellipse" and value not in ("none","misc/ellipse","misc/ellipse-hero"): print '"%s", line %d: custom ellipse %s may need to be updated' % (filename, i+1, value) except TypeError: # this is needed to handle tags, that parse_attribute cannot split pass