{% extends "base.html" %} {% block title %}Rules{% endblock %} {% block content %}

Rules

New rule

Rules encode company policy. Suggestions that would break an enabled rule are shown greyed out as blocked.

{% for r in rules %} {% else %} {% endfor %}
NameWhat it saysAccountStatusCurrent violations
{{ r.name }}
{{ r.kind_label }}
{% if r.description %}
{{ r.description }}
{% endif %}
{{ r.describe(names) }} {% if r.account_ref is none %}all accounts{% else %}{{ account_names.get(r.account_ref, 'deleted account #%d' % r.account_ref) }}{% endif %} {{ 'enabled' if r.enabled else 'disabled' }} {% set v = violations.get(r.id, []) %} {% if v %} {{ v | length }}
    {% for item in v[:10] %}
  • {{ item }}
  • {% endfor %}{% if v | length > 10 %}
  • … {{ v | length - 10 }} more
  • {% endif %}
{% elif not r.applies_to(active_ref) %}other account {% elif r.enabled %}none{% endif %}
Edit
No rules yet — create one.
Advanced: import/export (YAML)

Export YAML

{% for k, label in kinds.items() %}{% endfor %}
Rule kinds in YAML
{{ k }}{{ label }}
{% endblock %}