{{{ #!rule meta { title: "Validating buildings in HOT TM projects"; version: "[[revision]]_[[date]]"; description: "Few rules for checking mistakes on buildings that are usually made by beginners using ID Editor."; icon: "HOT_TM_logo.svg"; author: "Patrik_B"; } /* * building with layer tag */ *[building][building!=roof][layer]{ throwWarning: tr("Building has layer tag"); fixRemove: "layer"; group: tr("_Fix"); } /* * building with different tag then yes */ *[building][building!=yes]{ throwWarning: tr("Building has different tag then yes"); fixRemove: "building"; fixAdd: "building=yes"; group: tr("_Fix"); } /* * bridge without layer tag */ *[bridge][!layer]{ throwWarning: tr("Bridge is missing layer tag"); fixAdd: "layer=1"; group: tr("_Fix"); } /* * tunnel without layer tag. Added thanks to Filip009 */ *[tunnel][!layer]{ throwWarning: tr("Tunnel is missing layer tag"); fixAdd: "layer=-1"; group: tr("_Fix"); } }}}