{% from 'components/rule-list.macro.html' import ruleList %} {%- macro rule(params) -%}
{%- if params.deprecated == true -%}

{{ params.name }} deprecated

{%- if params.replacedBy|length -%}

Replaced by {{ ruleList({ rules: params.replacedBy }) }}

{%- else -%}

{{ params.description }}

{%- endif -%} {%- elseif params.removed == true -%}

{{ params.name }} removed

{%- if params.replacedBy -%}

Replaced by {{ ruleList({ rules: params.replacedBy }) }}

{%- else -%}

{{ params.description }}

{%- endif -%} {%- else -%} {{ params.name }}

{{ params.description }}

{%- endif -%}
{%- if params.removed == undefined -%}
Categories: {%- if params.deprecated -%}

{%- else -%} {%- endif -%}
{%- endif -%}
{%- endmacro -%}