Ticket #20960: josm_20960.patch

File josm_20960.patch, 3.0 KB (added by skyper, 4 years ago)

patch

  • resources/data/validator/combinations.mapcss

     
    158158  group: tr("missing tag");
    159159}
    160160
    161 /* {0.tag} without {1.key} (warning level), #18411, #18246, #20530 */
    162 way[railway=construction][!construction],
    163 way[highway=construction][!construction],
     161/* {0.tag} without {1.key} (warning level), #18411, #18246, #20530, #20960 */
     162way[railway=construction][!construction][!construction:railway],
     163way[highway=construction][!construction][!construction:highway],
     164area[building=construction][!construction][!construction:building],
     165area[landuse=construction][!construction][!construction:landuse],
    164166node[traffic_sign=maxspeed][!maxspeed][!/^maxspeed:.+/],
    165167*[actuator=manual][!handle],
    166168*[mechanical_driver=manual][!handle],
     
    307309  group: tr("suspicious tag combination");
    308310}
    309311
    310 /* {0.tag} together with {1.tag}, see #18411, #17950, #17330, #17623, #17592, #17594, #17542, #16861, #16147, #10186, #18815 */
     312/* {0.tag} together with {1.tag}, see #18411, #17950, #17330, #17623, #17592, #17594, #17542, #16861, #16147, #10186, #18815, #20960 */
    311313*[barrier=kerb][kerb=no],
    312 way[highway=construction][construction=yes],
    313 way[railway=construction][construction=yes],
     314way[highway=construction][construction][construction=~/^(yes|minor|no)$/],
     315way[railway=construction][construction][construction=~/^(yes|minor|no)$/],
     316area[building=construction][construction][construction=~/^(yes|minor|no)$/],
     317area[landuse=construction][construction][construction=~/^(yes|minor|no)$/],
    314318*[man_made=bridge][bridge=yes],
    315319*[man_made=tunnel][tunnel=yes],
    316320*[amenity=police][police],
     
    523527    assertNoMatch: "node sport=10pin amenity=restaurant";
    524528}
    525529
    526 /* {0.key} without {1.key} or {2.key} see #10140 */
     530/* {0.key} without {1.key} or {2.key} see #10140, #20960 */
     531way[construction][!highway][!railway]!:closed,
     532area[construction][!building][!landuse]:closed,
    527533*[building:levels][!building][!building:part],
    528534way[usage][!railway][!waterway][route!=railway][man_made!=pipeline] {
    529535  throwWarning: tr("{0} without {1} or {2}", "{0.key}", "{1.key}", "{2.key}");
     
    837843  assertNoMatch: "way construction:building=house construction=house";
    838844}
    839845
    840 /* #18203 */
    841 way[construction][construction!=yes][construction!=minor][highway][highway!=construction] {
    842   throwWarning: tr("{0} together with {1}", "{3.tag}", "{0.tag}");
     846/* #18203, #20960 */
     847way[construction][construction!~/^(yes|minor|no)$/][highway][highway!=construction],
     848way[construction][construction!~/^(yes|minor|no)$/][railway][railway!=construction],
     849area[construction][construction!~/^(yes|minor|no)$/][building][building!=construction],
     850area[construction][construction!~/^(yes|minor|no)$/][landuse][landuse!=construction] {
     851  throwWarning: tr("{0} together with {1}", "{2.tag}", "{0.tag}");
    843852  group: tr("suspicious tag combination");
    844853}
    845854