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

Last change on this file since 8418 was 7937, checked in by bastiK, 10 years ago

add subversion property svn:eol=native

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1*[access][highway=proposed],
2*[motor_vehicle?][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
15area:closed[amenity ][area?][!highway],
16area:closed[building][area?],
17area:closed[landuse ][area?][!highway],
18area:closed[leisure ][area?][!highway],
19area:closed[natural ][area?],
20area: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}={1} makes no sense", "emergency", "permissive");
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. */
34way >:sameTags node:tagged {
35 throwWarning: tr("Nodes duplicating parent way tags");
36}
Note: See TracBrowser for help on using the repository browser.