Changeset 18370 in josm for trunk/resources


Ignore:
Timestamp:
2022-02-09T15:39:15+01:00 (3 years ago)
Author:
stoecker
Message:

fix #21736, patch by skyper, False positive: "oneway=yes together with lanes:backward/forward" together with oneway:*

File:
1 edited

Legend:

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

    r18231 r18370  
    7676}
    7777
    78 /* {0.key} without {1.key} (info level) */
     78/* {0.key} without {1.key} (info level), #21736 */
    7979way[lanes:forward][!lanes:backward][oneway!=yes][oneway!=-1],
    8080way[lanes:backward][!lanes:forward][oneway!=yes][oneway!=-1],
     81way[lanes:forward][!lanes:backward][oneway=~/^(yes|-1)$/][/^oneway:(psv|bus)$/=~/^no$/],
     82way[lanes:backward][!lanes:forward][oneway=~/^(yes|-1)$/][/^oneway:(psv|bus)$/=~/^no$/],
    8183*[leaf_type ][!leaf_cycle],
    8284*[leaf_cycle][!leaf_type] {
     
    280282}
    281283
    282 /* {0.tag} together with {1.key}, see #17664, #17707, #16464, #10837, #14034, #9389, #11977, #13156, #16888, #20530 */
     284/* {0.tag} together with {1.key}, see #17664, #17707, #16464, #10837, #14034, #9389, #11977, #13156, #16888, #20530, #21736 */
    283285*[power=plant][/^generator:/],
    284286*[power=generator][/^plant:/],
     
    292294*[actuator][handle][actuator !~ /(^|;)manual(;|$)/],
    293295*[mechanical_driver][handle][mechanical_driver !~ /(^|;)manual(;|$)/],
    294 way[oneway=yes][/:backward/][!traffic_sign:backward][bicycle:backward!=use_sidepath][oneway:bicycle!=no][oneway:psv!=no],
    295 way[oneway=yes][/:forward/ ][!traffic_sign:forward ][bicycle:forward!=use_sidepath ][oneway:bicycle!=no][oneway:psv!=no],
    296 way[oneway=-1 ][/:backward/][!traffic_sign:backward][bicycle:backward!=use_sidepath][oneway:bicycle!=no][oneway:psv!=no],
    297 way[oneway=-1 ][/:forward/ ][!traffic_sign:forward ][bicycle:forward!=use_sidepath ][oneway:bicycle!=no][oneway:psv!=no] {
     296way[oneway=yes][/:backward/][!traffic_sign:backward][bicycle:backward!=use_sidepath][/^oneway:(bicycle|bus|mofa|moped|psv)$/!~/^no$/],
     297way[oneway=yes][/:forward/ ][!traffic_sign:forward ][bicycle:forward!=use_sidepath ][/^oneway:(bicycle|bus|mofa|moped|psv)$/!~/^no$/],
     298way[oneway=-1 ][/:backward/][!traffic_sign:backward][bicycle:backward!=use_sidepath][/^oneway:(bicycle|bus|mofa|moped|psv)$/!~/^no$/],
     299way[oneway=-1 ][/:forward/ ][!traffic_sign:forward ][bicycle:forward!=use_sidepath ][/^oneway:(bicycle|bus|mofa|moped|psv)$/!~/^no$/] {
    298300  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.key}");
    299301  group: tr("suspicious tag combination");
Note: See TracChangeset for help on using the changeset viewer.