-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rules_Marcmarc.useless.validator.mapcss
42 lines (37 loc) · 1.27 KB
/
Rules_Marcmarc.useless.validator.mapcss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
meta {
title: "Extended validator rules";
version: "1.02_2023-05-14";
description: "try to catch 'all' fixables errors and improvement";
author: "Marcmarc";
link: "https://github.com/Marc-marc-marc/osm-mapcss";
min-josm-version: "14481";
baselanguage: "en";
-osmoseTags: list("fix:chair");
}
meta[lang=fr] {
title: "Règles de validations étendues";
description: "essaye de traiter 'toutes' les erreurs corrigibles et les améliorations";
}
*[wheelchair=unknown] {
throwWarning: tr("unknown is noise without added value");
fixRemove: "wheelchair";
}
*[toilets:wheelchair=unknown] {
throwWarning: tr("unknown is noise without added value");
fixRemove: "toilets:wheelchair";
}
node[type=multipolygon] {
throwError: tr("{0} have no meaning on node and unclosed way", "{0.tag}");
group: tr("type=multipolygon not on a relation");
fixRemove: "type";
}
way!:closed[type=multipolygon] {
throwError: tr("{0} have no meaning on node and unclosed way", "{0.tag}");
group: tr("type=multipolygon not on a relation");
fixRemove: "type";
}
way:area-style[type=multipolygon] {
throwError: tr("area (as closed way) shouldn't have type=multipolygon");
group: tr("type=multipolygon not on a relation");
fixRemove: "type";
}