Changeset 18674 in josm for trunk/resources/data/validator


Ignore:
Timestamp:
2023-02-22T17:19:59+01:00 (21 months ago)
Author:
taylor.smock
Message:

Fix #21778: oneway + .*:(backward|forward):conditional should not have a warning (patch by Famlam)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/resources/data/validator/combinations.mapcss

    r18660 r18674  
    296296}
    297297
    298 /* {0.tag} together with {1.key}, see #22576, #17664, #17707, #16464, #10837, #14034, #9389, #11977, #13156, #16888, #20530, #21736, #22076 */
     298/* {0.tag} together with {1.key}, see #22576, #17664, #17707, #16464, #10837, #14034, #9389, #11977, #13156, #16888, #20530, #21736, #22076, #21778 */
    299299*[amenity=marketplace][highway],
    300300*[power=plant][/^generator:/],
     
    311311*[actuator][handle][actuator !~ /(^|;)manual(;|$)/],
    312312*[mechanical_driver][handle][mechanical_driver !~ /(^|;)manual(;|$)/],
    313 way[oneway=yes][/:backward/][!traffic_sign:backward][bicycle:backward!=use_sidepath][/^oneway:(bicycle|bus|mofa|moped|psv)$/!~/^no$/],
    314 way[oneway=yes][/:forward/ ][!traffic_sign:forward ][bicycle:forward!=use_sidepath ][/^oneway:(bicycle|bus|mofa|moped|psv)$/!~/^no$/],
    315 way[oneway=-1 ][/:backward/][!traffic_sign:backward][bicycle:backward!=use_sidepath][/^oneway:(bicycle|bus|mofa|moped|psv)$/!~/^no$/],
    316 way[oneway=-1 ][/:forward/ ][!traffic_sign:forward ][bicycle:forward!=use_sidepath ][/^oneway:(bicycle|bus|mofa|moped|psv)$/!~/^no$/] {
     313way[oneway?  ][/:backward/][!traffic_sign:backward][bicycle:backward!=use_sidepath][/^oneway:(bicycle|bus|mofa|moped|psv)$/!~/^no$/][!/^oneway:(.+:)?conditional$/],
     314way[oneway?  ][/:forward/ ][!traffic_sign:forward ][bicycle:forward!=use_sidepath ][/^oneway:(bicycle|bus|mofa|moped|psv)$/!~/^no$/][!/^oneway:(.+:)?conditional$/],
     315way[oneway=-1][/:backward/][!traffic_sign:backward][bicycle:backward!=use_sidepath][/^oneway:(bicycle|bus|mofa|moped|psv)$/!~/^no$/][!/^oneway:(.+:)?conditional$/],
     316way[oneway=-1][/:forward/ ][!traffic_sign:forward ][bicycle:forward!=use_sidepath ][/^oneway:(bicycle|bus|mofa|moped|psv)$/!~/^no$/][!/^oneway:(.+:)?conditional$/] {
    317317  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.key}");
    318318  group: tr("suspicious tag combination");
    319319  assertMatch: "way power=plant generator:source=wind";
    320320  assertMatch: "way power=generator plant:source=combustion";
     321  assertMatch: "way oneway=yes bicycle:backward=destination";
     322  assertNoMatch: "way oneway=-1 bicycle:forward=destination oneway:bicycle=no";
     323  assertNoMatch: "way oneway=yes bicycle:backward=destination oneway:bicycle=no";
     324  assertNoMatch: "way oneway=yes bicycle:backward:conditional=\"yes @ (Mo-Fr)\" oneway:bicycle:conditional=\"no @ (Mo-Fr)\"";
    321325}
    322326
Note: See TracChangeset for help on using the changeset viewer.