Changeset 16775 in josm


Ignore:
Timestamp:
2020-07-15T21:17:07+02:00 (4 years ago)
Author:
Klumbumbus
Message:

fix #17296 - If the value of fixme is also a tag, ask if the fixme is fixed (patch by taylor.smock, modified)

File:
1 edited

Legend:

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

    r16769 r16775  
    763763  assertNoMatch: "node height=4358'";
    764764}
     765
     766/* #17296, If the value of fixme is only an osm key, it is often a leftover from a time when the object didn't have this key. The fixme was forgotten to remove when the key was added. Or the value of fixme should be described better what exactly needs to be fixed. */
     767*[fixme][count(split(" ", tag("fixme"))) == 1][tag(tag("fixme")) != "none"] {
     768  throwWarning: tr("{0} together with {1}. Is the fixme fixed?", "{0.tag}", "{0.value}");
     769  group: tr("suspicious tag combination");
     770  assertMatch: "way name=\"Florist Gump\" fixme=name";
     771  assertNoMatch: "way fixme=name";
     772  assertNoMatch: "way name=\"Florist Gump\"";
     773  assertNoMatch: "way name=\"Florist Gump\" fixme=\"the name might have changed\"";
     774}
Note: See TracChangeset for help on using the changeset viewer.