Ticket #20742: 20742_v3.patch

File 20742_v3.patch, 1.1 KB (added by reichg, 3 years ago)

moved major highways into the test as a long regex entry.

  • resources/data/validator/combinations.mapcss

     
    109109  group: tr("missing tag");
    110110}
    111111
     112/* #20742 - No warning about barrier with inappropriate access tags on highway */
     113 way[highway=~/^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link)$/][!access][!vehicle] > node[barrier][barrier!=entrance][!access][!motor_vehicle] {
     114    throwWarning: tr("{0} tag on node missing complimentary tags such as {1}, {2}, or {3}.", "barrier", "access", "motor_vehicle", "vehicle");
     115    group: tr("suspicious barrier tags");
     116    assertMatch: "node barrier=gate way highway=tertiary";
     117    assertNoMatch: "node barrier=entrance way highway=tertiary";
     118}
     119
    112120/* {0.key} without {1.tag} or {2.tag} */
    113121*[bridge:movable               ][bridge!=movable][man_made!=bridge],
    114122*[substation                   ][power!=substation][pipeline!=substation],