Skip to content

Commit

Permalink
Don't show ellipsecheck warning if ellipse=none
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Dec 29, 2014
1 parent 08ef074 commit 75b2dfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/tools/wmllint
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 75b2dfc

Please sign in to comment.