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

Last change on this file since 6614 was 6548, checked in by simon04, 6 years ago

see #9414 - MapCSS-based tagchecker: migrate remaining tagchecks

All former tagchecker.cfg checks are now located in data/validator/*mapcss :-)

File size: 637 bytes
Line 
1*[access][highway=proposed],
2*[motor_vehicle?][highway =~ /motorway|trunk|primary|secondary|tertiary|unclassified|residential|service|living_street/],
3*[layer="0"] {
4  /* see #9365 - Useless tag layer=0 */
5  throwWarning: tr("{0} is unnecessary", "{0.tag}");
6  fixRemove: "{0.key}";
7  assertMatch: "way layer=0";
8  assertMatch: "way highway=proposed access=no";
9}
10
11*[emergency=permissive] {
12  /* see #9458 - emergency=permissive makes no sense */
13  throwWarning: tr("{0}={1} makes no sense", "emergency", "permissive");
14  fixAdd: "emergency=yes";
15  assertMatch: "way emergency=permissive";
16  assertNoMatch: "way emergency=designated";
17}
Note: See TracBrowser for help on using the repository browser.