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

Last change on this file since 12187 was 11476, checked in by Klumbumbus, 8 years ago
  • fix #14256 - warn about aeroway=aerodrome|helipad + area=yes
  • warn about values of area different from yes and no
  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
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 group: tr("unnecessary tag");
10 fixRemove: "{0.key}";
11 assertMatch: "way layer=0";
12 assertMatch: "way bridge=no";
13 assertMatch: "way highway=proposed access=no";
14}
15
16area:closed[amenity ][area?][!highway],
17area:closed[building][area?],
18area:closed[landuse ][area?][!highway],
19area:closed[leisure ][area?][!highway],
20area:closed[natural ][area?],
21area:closed[shop ][area?] {
22 throwWarning: tr("{0} is unnecessary for {1}", "{2.key}", "{1.key}");
23 group: tr("unnecessary tag");
24 fixRemove: "{2.key}";
25}
26
27/* #14256 */
28area:closed[aeroway=aerodrome][area?],
29area:closed[aeroway=helipad][area?] {
30 throwWarning: tr("{0} is unnecessary for {1}", "{2.key}", "{1.tag}");
31 group: tr("unnecessary tag");
32 fixRemove: "{2.key}";
33}
34
35*[emergency=permissive] {
36 /* see #9458 - emergency=permissive makes no sense */
37 throwWarning: tr("{0} makes no sense", "{0.tag");
38 fixAdd: "emergency=yes";
39 assertMatch: "way emergency=permissive";
40 assertNoMatch: "way emergency=designated";
41}
42
43/* see ticket #7639 -- Warn when a node has the same tags as its parent way. */
44way >:sameTags node:tagged {
45 throwWarning: tr("Nodes duplicating parent way tags");
46}
Note: See TracBrowser for help on using the repository browser.