Changeset 16255 in josm for trunk/resources/data/validator
- Timestamp:
- 2020-04-11T14:31:06+02:00 (5 years ago)
- Location:
- trunk/resources/data/validator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/resources/data/validator/combinations.mapcss
r16254 r16255 49 49 *[transformer ][!power], 50 50 *[source:date ][!source], 51 *[source:name ][!name] ,51 *[source:name ][!name][noname!=yes], 52 52 *[source:maxspeed:forward ][!maxspeed:forward][!maxspeed], 53 53 *[source:maxspeed:backward ][!maxspeed:backward][!maxspeed], 54 54 *[source:building ][!building], 55 *[source:ref ][!ref] ,55 *[source:ref ][!ref][noref!=yes], 56 56 *[source:population ][!population], 57 57 *[source:postal_code ][!postal_code], … … 72 72 *[source:housenumber ][!addr:housenumber], 73 73 *[source:addr:postcode ][!addr:postcode], 74 *[source:addr:housenumber ][!addr:housenumber], 75 *[source:addr ][!/^addr:/], 76 *[source:maxspeed ][!/^maxspeed:?/] { 74 *[source:addr:housenumber ][!addr:housenumber] { 77 75 throwWarning: tr("{0} without {1}", "{0.key}", "{1.key}"); 78 76 group: tr("missing tag"); … … 367 365 *[boundary][/^addr:/], 368 366 *[highway][/^addr:/][highway!=services][highway!=rest_area][!"addr:postcode"] { 369 throwWarning: tr("{0} together with addr:*", "{0.key}");367 throwWarning: tr("{0} together with {1}", "{0.key}", "addr:*"); 370 368 group: tr("suspicious tag combination"); 371 369 assertMatch: "node place=foo addr:housenumber=5"; … … 680 678 group: tr("missing tag"); 681 679 } 680 *[source:addr][!/^addr:/] { 681 throwWarning: tr("{0} without {1}", "{0.key}", "addr:*"); 682 group: tr("missing tag"); 683 } 684 *[source:maxspeed][!/^maxspeed:?/] { 685 throwWarning: tr("{0} without {1} or {2}", "{0.key}", "maxspeed", "maxspeed:*"); 686 group: tr("missing tag"); 687 } -
trunk/resources/data/validator/relation.mapcss
r15771 r16255 11 11 relation[type=route][!route], 12 12 relation[type=route_master][!route_master], 13 relation[type=restriction][!/^restriction/], /* see #11586 */14 13 relation[type=boundary][!boundary][!disused:boundary], 15 14 relation[type=public_transport][!public_transport], … … 22 21 assertMatch: "relation type=route_master"; 23 22 assertNoMatch: "relation type=route_master route_master=train"; 24 assertMatch: "relation type=restriction";25 assertNoMatch: "relation type=restriction restriction=no_left_turn";26 23 assertMatch: "relation type=boundary"; 27 24 assertNoMatch: "relation type=boundary boundary=administrative"; … … 35 32 } 36 33 34 /* #11586 */ 35 relation[type=restriction][!/^restriction/]{ 36 throwWarning: tr("{0} relation without {0} tag", "restriction"); 37 group: tr("missing tag"); 38 assertMatch: "relation type=restriction"; 39 assertNoMatch: "relation type=restriction restriction=no_left_turn"; 40 assertNoMatch: "relation type=restriction restriction:hgv=no_left_turn"; 41 } 42 37 43 /* #15208, #16242 */ 38 44 relation[type=route][route=mtb ] > way[bicycle=no],
Note:
See TracChangeset
for help on using the changeset viewer.