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

Last change on this file since 11146 was 11146, checked in by Klumbumbus, 7 years ago

see #13804 - a bit more grouping in the validator tree, small adjustments to a few validator rules

  • Property svn:eol-style set to native
File size: 1.2 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  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} 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. */
34way >:sameTags node:tagged {
35  throwWarning: tr("Nodes duplicating parent way tags");
36}
Note: See TracBrowser for help on using the repository browser.