Skip to content
Snippets Groups Projects
Commit 68ea0d8d authored by Štěpán Balážik's avatar Štěpán Balážik
Browse files

rplint: fix range_shadowing_match_rules

parent 163111fd
No related merge requests found
......@@ -280,6 +280,8 @@ def range_shadowing_match_rules(test: RplintTest) -> List[RplintFail]:
try:
e1.match(e2.message)
info = "previous entry on line %d" % get_line_number(test.path, e1.node.char)
if e1.match_fields > e2.match_fields:
continue
fails.append(RplintFail(test, e2, info))
# IndexError is here especially because of empty question section in rpls
except (ValueError, IndexError):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment