{% extends "layout.html" %} {% block title %} Overview {% endblock %} {% block pageTitle %} AST Metrics - Overview {% endblock %} {% block content %}
{% if currentView.Comparaison %} {% include 'componentComparaisonBadge.html' with comparaisonMode='dontCare' diff=currentView.Comparaison.Loc round=0 %} {% endif %} Lines of code
The total number of lines of code.
{% if currentView.Comparaison %} {% include 'componentComparaisonBadge.html' with comparaisonMode='lowIsBetter' diff=currentView.Comparaison.AverageCyclomaticComplexityPerMethod round=2 %} {% endif %} Cycl. complexity per method
The average complexity of the code, measured by the number of possible execution paths. Lower is better.
{% if currentView.Comparaison %} {% include 'componentComparaisonBadge.html' with comparaisonMode='highIsBetter' diff=currentView.Comparaison.AverageMI round=2 %} {% endif %} Maintainability index
Based on the volume, the complexity of operators and the complexity of the code. Ideally, should be higher than 85.
{% if currentView.Comparaison %} {% include 'componentComparaisonBadge.html' with comparaisonMode='lowIsBetter' diff=currentView.Comparaison.AverageLocPerMethod round=2 %} {% endif %} Average lines of code per method
Long methods are hard to maintain and understand. Ideally, should be lower than 20.
Commits on analyzed code
| Total | Impacting | Ignored | |
|---|---|---|---|
| {{ commitAnalysis.CountCommits }} | {{ commitAnalysis.CountCommitsForLanguage }} | {{ commitAnalysis.CountCommitsIgnored }} |
The number of commits over the last 12 months. Only commits on current programming language are counted.
{% else %}Commits
The number of commits over the last 12 months. Only commits on current programming language are counted.
{% endif %}Bus factor
| Top committers | Top committers
|---|
| {{ committer.Name }} |
The bus factor is the number of developers that would need to be incapacitated before a project would stall due to insufficient knowledge or skills. Ideally, should be higher than 3.
These components have a low maintainability index and have been recently modified. They are good candidates for refactoring.
Relations between packages
Average Instability
Number of times the component is used by other components. If high, the component is difficult to refactor.
Number of external dependencies.
Average complexity per method (cyclomatic)
The average complexity of the code, measured by the number of possible execution paths. Lower is better. This metrics includes interfaces and abstract classes, and may be lower than 1.