Ignore:
Timestamp:
2014-12-17T14:54:55+01:00 (5 years ago)
Author:
Klumbumbus
Message:

see #10837 - add some more validation rules (based on rules by naoliv)

File:
1 edited

Legend:

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

    r7767 r7818  
    134134}
    135135
     136/* {0.key} together with {1.key}, see #10837 */
     137*[noname?][name],
     138*[highway]["addr:street"] {
     139  throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
     140}
     141
    136142/* {0} on suspicious object */
    137143*[tunnel  ][!highway][!railway][!waterway][public_transport != platform][man_made != pipeline],
     
    165171}
    166172
    167 /* see ticket #9593 */
     173/* see #9593 */
    168174*[sport][tourism != hotel][highway != raceway][leisure !~ /^(sports_centre|stadium|track|pitch|golf_course|water_park|swimming_pool|recreation_ground)$/][natural !~ /^(beach|bare_rock)$/][amenity !~ /^(pub|restaurant|swimming_pool)$/][landuse !~ /^(recreation_ground|piste|farm|farmland)$/] {
    169175    throwWarning: tr("sport without physical feature");
     
    187193    throwWarning: tr("{0} should be on the node where {1} and {2} intersect", "ford", "highway", "waterway");
    188194}
     195
     196/* any other *_name tag but not a name, see #10837 */
     197*[/_name$/][!name] {
     198  throwWarning: tr("alternative name without {0}", "{1.key}");
     199}
     200
     201/* see #10837 */
     202way[destination][!oneway?] {
     203  throwWarning: tr("incomplete usage of {0} on a way without {1}", "{0.key}", "{1.key}");
     204  suggestAlternative: "destination:forward";
     205  suggestAlternative: "destination:backward";
     206}
Note: See TracChangeset for help on using the changeset viewer.