Code Complexity Report

{% for file in files %} {% if file.functions|length > 0 %} {% endif %} {% for func in file.functions %} {% if func.cyclomatic_complexity >= thresholds["cyclomatic_complexity"] %} {% else %} {% endif %} {% if func.nloc >= thresholds["length"] %} {% else %} {% endif %} {% if thresholds["token_count"] %} {% if func.token_count >= thresholds["token_count"] %} {% else %} {% endif %} {% else %} {% endif %} {% if func.parameters|length >= thresholds["parameter_count"] %} {% else %} {% endif %} {% endfor %} {% endfor %}
Source file: {{ file.filename }}
Function nameCyclomatic complexity ({{ thresholds["cyclomatic_complexity"] }})LOC ({{ thresholds["length"] }}) {% if thresholds["token_count"] %} Token count ({{ thresholds["token_count"] }}) {% else %} Token count {% endif %} Parameter count ({{ thresholds["parameter_count"] }})
{{ func.name }} {{ func.cyclomatic_complexity }}{{ func.cyclomatic_complexity }}{{ func.nloc }}{{ func.nloc}}{{ func.token_count }}{{ func.token_count }}{{ func.token_count }}{{ func.parameters|length }}{{ func.parameters|length }}