Commit 559c8f86 authored by Tomas Krizek's avatar Tomas Krizek

Merge branch 'rplint-subdomain' into 'master'

rplint: fix check for shadowing entries

See merge request !135
parents 86911787 6f1d2ed0
Pipeline #39824 failed with stage
in 1 minute and 29 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:
continue
if "subdomain" not in e1.match_fields and "subdomain" in e2.match_fields:
continue
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