| 1 | {{{ |
| 2 | #!rule |
| 3 | meta |
| 4 | { |
| 5 | title: "Source object tag"; |
| 6 | version: "1.[[revision]]_[[date]]"; |
| 7 | description: "Warn of source tags on objects that are obsolete, or will be in future edits"; |
| 8 | author: "gileri"; |
| 9 | link: "https://josm.openstreetmap.de/wiki/Rules/SourceObjectTag"; |
| 10 | baselanguage: "en"; |
| 11 | min-josm-version: 14481; |
| 12 | } |
| 13 | |
| 14 | node[source]:modified, |
| 15 | way[source]:modified, |
| 16 | relation[source]:modified { |
| 17 | throwWarning: tr("Modified object with a source tag"); |
| 18 | fixRemove: "source"; |
| 19 | } |
| 20 | |
| 21 | node:modified < way[source], |
| 22 | node:modified < relation[source], |
| 23 | way:modified < relation[source], |
| 24 | relation:modified < relation[source] { |
| 25 | throwWarning: tr("Modified child of an objet with source tag"); |
| 26 | fixRemove: "source"; |
| 27 | } |
| 28 | }}} |