Changeset 6649 in josm


Ignore:
Timestamp:
2014-01-06T18:57:29+01:00 (6 years ago)
Author:
simon04
Message:

see #9414 - MapCSS validator: make individual tests ignorable

As "ignore"-key, the MapCSS selector is used, e.g., *[name'REGEX'(?i).*Strasse.*].
The file validator/ignorederrors then contains entries like 3000_*[name'REGEX'(?i).*Strasse.*].

Location:
trunk
Files:
2 edited

Legend:

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

    r6637 r6649  
    5454
    5555way.major_road[foot?][!sidewalk] {
    56   throwWarning: tr("{0} used with {1}", tr("major road"), "{0.tag}");
     56  throwWarning: tr("major road used with {0}", "{0.tag}");
    5757  suggestAlternative: "sidewalk";
    5858  suggestAlternative: tr("separate footway");
  • trunk/src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java

    r6636 r6649  
    337337                final String description = getDescriptionForMatchingSelector(matchingSelector);
    338338                if (fix != null) {
    339                     return new FixableTestError(null, getSeverity(), description, 3000, p, fix);
     339                    return new FixableTestError(null, getSeverity(), description, description, matchingSelector.toString(), 3000, p, fix);
    340340                } else {
    341                     return new TestError(null, getSeverity(), description, 3000, p);
     341                    return new TestError(null, getSeverity(), description, description, matchingSelector.toString(), 3000, p);
    342342                }
    343343            } else {
Note: See TracChangeset for help on using the changeset viewer.