Changeset 14884 in josm


Ignore:
Timestamp:
2019-03-14T20:23:41+01:00 (7 months ago)
Author:
Klumbumbus
Message:

fix #17100 - warn about descriptive names (patch by mkoniecz)

File:
1 edited

Legend:

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

    r14593 r14884  
    7272  fixRemove: "{1.key}";
    7373}
     74
     75/* #17100 */
     76*[name][name=~/^(?i)(parking)$/][amenity=parking],
     77*[name][name=~/^(?i)(parkplatz)$/][amenity=parking],
     78*[name][name=~/^(?i)(playground)$/][leisure=playground],
     79*[name][name=~/^(?i)(spielplatz)$/][leisure=playground],
     80*[name][name=~/^(?i)(shop)$/][shop][shop!=no],
     81*[name][name=~/^(?i)(building)$/][building][building!=no],
     82*[name][name=~/^(?i)(kiosk)$/][shop=kiosk],
     83*[name][name=~/^(?i)(cemetery)$/][amenity=graveyard],
     84*[name][name=~/^(?i)(cemetery)$/][amenity=cemetery],
     85*[name][name=~/^(?i)(cmentarz)$/][amenity=graveyard],
     86*[name][name=~/^(?i)(cmentarz)$/][amenity=cemetery] {
     87  throwWarning: tr("{0}", "{0.tag}");
     88  group: tr("descriptive name");
     89  fixRemove: "name";
     90  assertMatch: "way name=parking amenity=parking";
     91  assertMatch: "way name=Parking amenity=parking";
     92  assertMatch: "node name=parking amenity=parking";
     93  assertMatch: "node name=Parking amenity=parking";
     94  assertNoMatch: "node name=Parking_with_suffix amenity=parking";
     95  assertNoMatch: "node name=Megaparking amenity=parking";
     96  assertMatch: "relation name=parking amenity=parking type=multipolygon";
     97  assertMatch: "relation name=Parking amenity=parking type=multipolygon";
     98  assertNoMatch: "way name=parking";
     99  assertMatch: "relation name=PLAYGROUND leisure=playground type=multipolygon";
     100  assertMatch: "node name=PLaYGrOUNd leisure=playground";
     101  assertNoMatch: "way name=playground";
     102  assertMatch: "node name=shop shop=whatever";
     103  assertNoMatch: "node name=shop shop=no";
     104  assertNoMatch: "way name=shop leisure=playground";
     105  assertMatch: "way name=building building=yes";
     106  assertNoMatch: "way building=yes";
     107  assertMatch: "way name=kiosk building=yes shop=kiosk";
     108  assertNoMatch: "way name=kiosk building=yes";
     109  assertMatch: "way name=cemetery amenity=graveyard";
     110  assertMatch: "way name=cmentarz amenity=graveyard";
     111  assertMatch: "way name=Cmentarz amenity=graveyard";
     112  assertNoMatch: "way name=kiosk amenity=graveyard";
     113}
Note: See TracChangeset for help on using the changeset viewer.