Ignore:
Timestamp:
2016-09-24T19:25:18+02:00 (3 years ago)
Author:
Klumbumbus
Message:

adjust some validator rules

File:
1 edited

Legend:

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

    r11025 r11049  
    505505  set samecolor;
    506506  fixRemove: "color";
     507  assertMatch: "way color=red colour=red";
     508  assertNoMatch: "way color=red colour=green";
    507509}
    508510*[color][colour]!.samecolor {
    509511  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
     512  assertNoMatch: "way color=red colour=red";
     513  assertMatch: "way color=red colour=green";
    510514}
    511515*[/:color/]{
    512516  throwWarning: tr("{0} is deprecated", "{0.key}");
    513517  suggestAlternative: ":colour";
     518  assertNoMatch: "way color=red";
     519  assertMatch: "way roof:color=grey";
    514520}
    515521*[/color:/] {
     
    529535relation[/^..$/][!to] {
    530536  throwWarning: tr("uncommon short key");
     537  assertNoMatch: "relation to=Berlin";
     538  assertMatch: "relation fo=bar";
     539  assertMatch: "way to=bar";
     540  assertMatch: "node fo=bar";
     541  assertMatch: "node f=b";
    531542}
    532543
Note: See TracChangeset for help on using the changeset viewer.