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