Changes between Initial Version and Version 1 of Rules/NotCheck


Ignore:
Timestamp:
2023-08-08T15:43:17+02:00 (2 years ago)
Author:
CjMalone
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Rules/NotCheck

    v1 v1  
     1= Not Check =
     2
     3Note: hopefully to be rewritten in Java to test all tags
     4
     5{{{
     6#!rule
     7meta {
     8    title: "Not Check";
     9    version: "1.[[revision]]_[[date]]";
     10    author: "CjMalone";
     11    link: "https://josm.openstreetmap.de/wiki/Rules/NotCheck";
     12    baselanguage: "en";
     13}
     14
     15*[name][not:name][tag("name")==tag("not:name")] {
     16    throwWarning: "name and not:name matching, please check the tags and amend one.";
     17}
     18*[brand:wikidata][not:brand:wikidata][tag("name")==tag("not:name")] {
     19    throwWarning: "brand:wikidata and not:brand:wikidata matching, please check the tags and amend one.";
     20}
     21*[operator:wikidata][not:operator:wikidata][tag("operator:wikidata")==tag("not:operator:wikidata")] {
     22    throwWarning: "operator:wikidata and not:operator:wikidata matching, please check the tags and amend one.";
     23}
     24*[network:wikidata][not:network:wikidata][tag("network:wikidata")==tag("not:network:wikidata")] {
     25    throwWarning: "network:wikidata and not:network:wikidata matching, please check the tags and amend one.";
     26}
     27*[addr:postcode][not:addr:postcode][tag("addr:postcode")==tag("not:addr:postcode")] {
     28    throwWarning: "addr:postcode and not:addr:postcode matching, please check the tags and amend one.";
     29}
     30*[highway][not:highway][tag("highway")==tag("not:highway")] {
     31    throwWarning: "highway and not:highway matching, please check the tags and amend one.";
     32}
     33*[naptan:AtcoCode][not:naptan:AtcoCode][tag("naptan:AtcoCode")==tag("not:naptan:AtcoCode")] {
     34    throwWarning: "naptan:AtcoCode and not:naptan:AtcoCode matching, please check the tags and amend one.";
     35}
     36*[fhrs:id][not:fhrs:id][tag("fhrs:id")==tag("not:fhrs:id")] {
     37    throwWarning: "fhrs:id and not:fhrs:id matching, please check the tags and amend one.";
     38}
     39}}}