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

Last change on this file since 6778 was 6778, checked in by simon04, 5 years ago

fix #9614 - Check and remove unnecessary area=yes - patch by naoliv

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