Changeset 15648 in josm for trunk/data/validator


Ignore:
Timestamp:
2020-01-06T22:13:13+01:00 (6 years ago)
Author:
Klumbumbus
Message:
Location:
trunk/data/validator
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/combinations.mapcss

    r15635 r15648  
    270270}
    271271
    272 /* {0.tag} together with {1.tag}, see #17950, #17330, #17623, #17592, #17594, #17542, #16861, #16147, #10186 */
     272/* {0.tag} together with {1.tag}, see #18411, #17950, #17330, #17623, #17592, #17594, #17542, #16861, #16147, #10186 */
     273*[barrier=kerb][kerb=no],
     274way[highway=construction][construction=yes],
     275way[railway=construction][construction=yes],
    273276*[man_made=bridge][bridge=yes],
    274277*[man_made=tunnel][tunnel=yes],
     
    649652  group: tr("suspicious tag combination");
    650653}
     654
     655/* #18374 */
     656*[amenity=recycling][collection_times="24/7"][!opening_hours],
     657*[amenity=recycling][collection_times       ][!opening_hours][collection_times=~/[a-z]-[A-Z].*[0-9]-[0-9]/] {
     658  throwWarning: tr("{0} together with {1}. Probably {2} is meant.", "{1.key}", "{0.tag}", "{2.key}");
     659  group: tr("suspicious tag combination");
     660  fixChangeKey: "collection_times => opening_hours";
     661  /* spaces in asserts are not yet supported
     662  assertMatch: "node amenity=recycling collection_times=Mo-Fr 06:00-20:00";
     663  assertNoMatch: "node amenity=recycling collection_times=Mo-Fr 15:00";
     664  assertNoMatch: "node amenity=recycling collection_times=Mo 08:00-11:00";
     665  assertNoMatch: "node amenity=recycling collection_times=Sa[2,4] 8:00-11:00";
     666  */
     667}
     668*[amenity=recycling][collection_times="24/7"][opening_hours],
     669*[amenity=recycling][collection_times       ][opening_hours][collection_times=~/[a-z]-[A-Z].*[0-9]-[0-9]/] {
     670  throwWarning: tr("{0} together with {1}. Probably {2} is meant.", "{1.key}", "{0.tag}", "{2.key}");
     671  group: tr("suspicious tag combination");
     672}
  • trunk/data/validator/deprecated.mapcss

    r15636 r15648  
    543543
    544544/* see #11070 */
     545*[kerb=unknown],
    545546*[lock=unknown],
    546547*[hide=unknown],
     
    10691070}
    10701071
     1072/* #18517 */
    10711073*[office=administrative] {
    10721074  throwWarning: tr("{0} is deprecated", "{0.tag}");
    1073   group: tr("deprecated tagging");
    10741075  suggestAlternative: "office=government";
     1076  group: tr("deprecated tagging");
     1077  fixAdd: "office=government";
    10751078}
    10761079
     
    18541857  group: tr("deprecated tagging");
    18551858}
     1859
     1860*[sloped_curb=yes][!kerb],
     1861*[sloped_curb=both][!kerb] {
     1862  throwWarning: tr("{0} is deprecated", "{0.tag}");
     1863  suggestAlternative: "kerb=lowered";
     1864  group: tr("deprecated tagging");
     1865  fixRemove: "sloped_curb";
     1866  fixAdd: "kerb=lowered";
     1867}
     1868*[sloped_curb=no][!kerb] {
     1869  throwWarning: tr("{0} is deprecated", "{0.tag}");
     1870  suggestAlternative: "kerb=yes";
     1871  group: tr("deprecated tagging");
     1872  fixRemove: "sloped_curb";
     1873  fixAdd: "kerb=yes";
     1874}
     1875*[sloped_curb][sloped_curb !~ /^(yes|both|no)$/][!kerb],
     1876*[sloped_curb][kerb] {
     1877  throwWarning: tr("{0} is deprecated", "{0.key}");
     1878  suggestAlternative: "kerb=*";
     1879  group: tr("deprecated tagging");
     1880}
  • trunk/data/validator/highway.mapcss

    r15314 r15648  
    158158  fixAdd: "railway=level_crossing";
    159159}
     160
     161node[highway=crossing][barrier=kerb].is_in_major_road {
     162  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
     163  suggestAlternative: "kerb=*";
     164  group: tr("suspicious tag combination");
     165}
Note: See TracChangeset for help on using the changeset viewer.