source: josm/trunk/data/validator/unnecessary.mapcss @ 6698

Last change on this file since 6698 was 6698, checked in by Don-vip, 6 years ago

fix #9486 - detect and remove bridge=no

File size: 851 bytes
Line 
1*[access][highway=proposed],
2*[motor_vehicle?][highway =~ /motorway|trunk|primary|secondary|tertiary|unclassified|residential|service|living_street/],
3*[bridge=no],
4*[layer="0"] {
5  /* see #9365 - Useless tag layer=0 */
6  throwWarning: tr("{0} is unnecessary", "{0.tag}");
7  fixRemove: "{0.key}";
8  assertMatch: "way layer=0";
9  assertMatch: "way bridge=no";
10  assertMatch: "way highway=proposed access=no";
11}
12
13*[emergency=permissive] {
14  /* see #9458 - emergency=permissive makes no sense */
15  throwWarning: tr("{0}={1} makes no sense", "emergency", "permissive");
16  fixAdd: "emergency=yes";
17  assertMatch: "way emergency=permissive";
18  assertNoMatch: "way emergency=designated";
19}
20
21/* see ticket #7639 -- Warn when a node has the same tags as its parent way. */
22way >:sameTags node:tagged {
23  throwWarning: tr("Nodes duplicating parent way tags");
24}
Note: See TracBrowser for help on using the repository browser.