source: josm/trunk/data/validator/power.mapcss@ 7032

Last change on this file since 7032 was 6924, checked in by Don-vip, 10 years ago

fix #9845 - validator: fix "power line without voltage" test

File size: 637 bytes
Line 
1/* power related stuff (incomplete) */
2
3*[power =~ /^(line|minor_line|cable)$/][!voltage],
4*[substation][power!=substation],
5*[transformer][!power] {
6 throwWarning: tr("{0} without {1}", "{0.key}", "{1.tag}");
7 assertMatch: "way power=line";
8 assertNoMatch: "way power=line voltage=1";
9 assertNoMatch: "way power=cable_distribution_cabinet";
10}
11
12*[power=substation][!substation],
13*[power=transformer][!transformer] {
14 throwOther: tr("{0} without {1}", "{0.tag}", "{1.key}");
15 assertMatch: "way power=substation";
16 assertMatch: "way power=substation transformer=foobar";
17 assertNoMatch: "way power=substation substation=foobar";
18}
Note: See TracBrowser for help on using the repository browser.