Changeset 9088 in josm


Ignore:
Timestamp:
2015-12-06T16:33:12+01:00 (8 years ago)
Author:
Klumbumbus
Message:

fix #12133 - warn about name=fixme

File:
1 edited

Legend:

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

    r9045 r9088  
    240240  throwWarning: tr("{0}={1} is unspecific. Instead of ''{1}'' please give more information about what exactly should be fixed.", "{0.key}", "{0.value}");
    241241  assertMatch: "way fixme=yes";
     242}
     243
     244*[name][name=~/^(?i)fixme$/] {
     245  throwWarning: tr("Wrong usage of {0} tag. Remove {1}, because it is clear that the name is missing even without an additional tag.", "{0.key}", "{0.tag}");
     246  fixRemove: "name";
     247  assertMatch: "node name=fixme";
     248  assertMatch: "node name=Fixme";
     249  assertMatch: "node name=FIXME";
     250  assertNoMatch: "node name=valid name";
    242251}
    243252
Note: See TracChangeset for help on using the changeset viewer.