Commit 6f1d2ed0 authored by Štěpán Balážik's avatar Štěpán Balážik

rplint: fix check for shadowing entries

It caused false positives when using `MATCH subdomain` before.
parent 86911787
Pipeline #39820 passed with stage
in 1 minute and 22 seconds
......@@ -285,6 +285,8 @@ def range_shadowing_match_rules(test: RplintTest) -> List[RplintFail]:
info = "previous entry on line %d" % get_line_number(test.path, e1.node.char)
if e1.match_fields > e2.match_fields:
if "subdomain" not in e1.match_fields and "subdomain" in e2.match_fields:
fails.append(RplintFail(test, e2, info))
return fails
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