Commit 68ea0d8d authored by Štěpán Balážik's avatar Štěpán Balážik

rplint: fix range_shadowing_match_rules

parent 163111fd
Pipeline #38533 passed with stage
in 1 minute and 51 seconds
......@@ -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):
......
Markdown is supported
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