Skip to content

Rule Templates

cinnamon-rolls edited this page Jul 14, 2021 · 1 revision

Rule Templates

The most simple Rule Template is the Default template. Everything else is just an optimization or specialization on top of that template, and behind the scenes, everything boils down to that Default template. So, if there is any template you study, make it the Default template.

List of Templates

Default Template

This is the simplest template. Objects of this template are an object with the following keys:

Key Value
name The name of the rule (for human readers)
note The description of the rule, like a comment
search The Search that reveals faulty files
disabled If a truthy value, then the rule will be disabled

Example

{
  "name": "Character Without Series",
  "note": "Files with a 'character' tag should also have a 'series' tag.",
  "search": [
    "character:*",
    "-series:*",
    "-character:character request",
    "-meta:character request",
    "-character:original"
  ]
}