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

Last change on this file since 11263 was 11153, checked in by Klumbumbus, 3 years ago
  • add display_values and values_sort=false for Route network values (iwn,nwn,...)
  • warn about missing sport key on pitches
  • see #13804 - group unnecessary tag warnings
  • add own colors for sport=multi|running|athletics to avoid false positive validator warning in stadiums (inner style equals MP style)
  • fix #13824 - adjust sport=equestrian|horse_racing presets
  • Property svn:eol-style set to native
File size: 1.3 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*[emergency=permissive] {
28  /* see #9458 - emergency=permissive makes no sense */
29  throwWarning: tr("{0} makes no sense", "{0.tag");
30  fixAdd: "emergency=yes";
31  assertMatch: "way emergency=permissive";
32  assertNoMatch: "way emergency=designated";
33}
34
35/* see ticket #7639 -- Warn when a node has the same tags as its parent way. */
36way >:sameTags node:tagged {
37  throwWarning: tr("Nodes duplicating parent way tags");
38}
Note: See TracBrowser for help on using the repository browser.