Skip to content

Code Metrics

Generated: 2026-07-04 10:47 UTC


Lines of Code

Files Code Comment Blank Total
Source 12 2 516 520 333 3 369
Tests 11 1 946 217 392 2 555
Combined 23 4 462 737 725 5 924
  • Comment/code ratio: 21%
  • Test/source ratio: 77.3%
Source by module (click to expand)
Module Files Code Comment Blank
mkdocs_terok/ 12 2 516 520 333
mkdocs_terok/_assets/ 2 276 17 46
mkdocs_terok/__init__.py 21 10 6
mkdocs_terok/ci_map.py 124 25 25
mkdocs_terok/code_metrics.py 788 72 53
mkdocs_terok/config_reference.py 210 82 51
mkdocs_terok/inventory.py 112 54 9
mkdocs_terok/module_map.py 391 114 56
mkdocs_terok/plugin.py 199 34 25
mkdocs_terok/ref_pages.py 34 32 14
mkdocs_terok/test_map.py 167 51 40
mkdocs_terok/versions.py 194 29 8

Architecture

Module Dependency Graph

graph TD
    mkdocs_terok.plugin --> mkdocs_terok
    mkdocs_terok

Module Boundaries

2 modules, 1 dependency edges — all boundaries validated.

Module Summary

2 modules (click to expand)
Module Deps Description
mkdocs_terok 0 Generators (no doc-engine import)
mkdocs_terok.plugin 1 Plugin (imports properdocs + generators)

Test Coverage

Overall line coverage: 86.6% (1220/1408 statements).

Each rectangle is a source file. Area is proportional to the number of statements; colour encodes the coverage percentage (green = fully covered, red = uncovered). Files are grouped by the first 3 directory levels.

Cognitive Complexity

Threshold: 15 (functions above this are listed below)

  • Functions analyzed: 98
  • Median complexity: 3.0 · Average: 5.5 · Max: 40
  • Within threshold (15): 92% (90/98)
    0–  3 │ ██████████████████████████████  53 (54.1%)
    4–  6 │ ███████                         13 (13.3%)
    7–  9 │ ███████                         13 (13.3%)
   10– 12 │ █████                            9 ( 9.2%)
   13– 15 │ █                                2 ( 2.0%) ◄ threshold
   16– 18 │ ██                               4 ( 4.1%)
   19– 21 │ █                                2 ( 2.0%)
   22– 25 │ █                                1 ( 1.0%)
   26+    │ █                                1 ( 1.0%)

8 functions exceeding threshold:

Complexity Function File
40 _section_complexity src/mkdocs_terok/code_metrics.py
22 load_workflows src/mkdocs_terok/ci_map.py
21 _trigger_summary src/mkdocs_terok/ci_map.py
19 _section_dependency_report src/mkdocs_terok/code_metrics.py
18 _section_layer_overview src/mkdocs_terok/code_metrics.py
17 _yaml_default src/mkdocs_terok/config_reference.py
16 _section_dead_code src/mkdocs_terok/code_metrics.py
16 _render_layer src/mkdocs_terok/module_map.py

Dead Code Analysis

No dead code found at 80% confidence threshold.

Docstring Coverage

  • Needed: 119 - Found: 119 - Missing: 0
  • Total coverage: 100.0% - Grade: AMAZING! Your docstrings are truly a wonder to behold!

Generated by scc, complexipy, vulture, tach, and docstr-coverage.