1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
*[access][highway=proposed],
*[motor_vehicle?][bicycle_road!=yes][highway =~ /motorway|trunk|primary|secondary|tertiary|unclassified|residential|service|living_street/],
*[bridge=no],
*[building=no],
*[elevation="0"],
*[layer="0"] {
/* see #9365 - Useless tag layer=0 */
throwWarning: tr("{0} is unnecessary", "{0.tag}");
fixRemove: "{0.key}";
assertMatch: "way layer=0";
assertMatch: "way bridge=no";
assertMatch: "way highway=proposed access=no";
}
area:closed[amenity ][area?][!highway],
area:closed[building][area?],
area:closed[landuse ][area?][!highway],
area:closed[leisure ][area?][!highway],
area:closed[natural ][area?],
area:closed[shop ][area?] {
throwWarning: tr("{0} is unnecessary for {1}", "{2.key}", "{1.key}");
fixRemove: "{2.key}";
}
*[emergency=permissive] {
/* see #9458 - emergency=permissive makes no sense */
throwWarning: tr("{0}={1} makes no sense", "emergency", "permissive");
fixAdd: "emergency=yes";
assertMatch: "way emergency=permissive";
assertNoMatch: "way emergency=designated";
}
/* see ticket #7639 -- Warn when a node has the same tags as its parent way. */
way >:sameTags node:tagged {
throwWarning: tr("Nodes duplicating parent way tags");
}
|