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

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

Replace NodesDuplicatingWayTags test by a corresponding MapCSS test

File size: 805 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}
18
19/* see ticket #7639 -- Warn when a node has the same tags as its parent way. */
20way >:sameTags node:tagged {
21  throwWarning: tr("Nodes duplicating parent way tags");
22}
Note: See TracBrowser for help on using the repository browser.