Changeset 15648 in josm for trunk/data/validator
- Timestamp:
- 2020-01-06T22:13:13+01:00 (6 years ago)
- Location:
- trunk/data/validator
- Files:
-
- 3 edited
-
combinations.mapcss (modified) (2 diffs)
-
deprecated.mapcss (modified) (3 diffs)
-
highway.mapcss (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/validator/combinations.mapcss
r15635 r15648 270 270 } 271 271 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], 274 way[highway=construction][construction=yes], 275 way[railway=construction][construction=yes], 273 276 *[man_made=bridge][bridge=yes], 274 277 *[man_made=tunnel][tunnel=yes], … … 649 652 group: tr("suspicious tag combination"); 650 653 } 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 543 543 544 544 /* see #11070 */ 545 *[kerb=unknown], 545 546 *[lock=unknown], 546 547 *[hide=unknown], … … 1069 1070 } 1070 1071 1072 /* #18517 */ 1071 1073 *[office=administrative] { 1072 1074 throwWarning: tr("{0} is deprecated", "{0.tag}"); 1073 group: tr("deprecated tagging");1074 1075 suggestAlternative: "office=government"; 1076 group: tr("deprecated tagging"); 1077 fixAdd: "office=government"; 1075 1078 } 1076 1079 … … 1854 1857 group: tr("deprecated tagging"); 1855 1858 } 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 158 158 fixAdd: "railway=level_crossing"; 159 159 } 160 161 node[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.
