Skip to content

Code Metrics

Generated: 2026-09-11 08:23 UTC


Lines of Code

Files Code Comment Blank Total
Source 12 2 521 520 333 3 374
Tests 11 1 958 218 397 2 573
Combined 23 4 479 738 730 5 947
  • Comment/code ratio: 21%
  • Test/source ratio: 77.7%
Source by module (click to expand)
Module Files Code Comment Blank
mkdocs_terok/ 12 2 521 520 333
mkdocs_terok/_assets/ 2 276 17 46
mkdocs_terok/__init__.py — 26 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.7% (1225/1413 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: 4.0 · Average: 6.3 · Max: 53
  • Within threshold (15): 90% (88/98)
    0–  3 │ ██████████████████████████████  48 (49.0%)
    4–  6 │ ██████████                      16 (16.3%)
    7–  9 │ █████                            8 ( 8.2%)
   10– 12 │ ████████                        13 (13.3%)
   13– 15 │ ██                               3 ( 3.1%) ◄ threshold
   16– 18 │ ████                             6 ( 6.1%)
   19– 21 │ █                                1 ( 1.0%)
   22– 25 │ █                                1 ( 1.0%)
   26+    │ █                                2 ( 2.0%)

10 functions exceeding threshold:

Complexity Function File
53 _section_complexity src/mkdocs_terok/code_metrics.py
29 load_workflows src/mkdocs_terok/ci_map.py
23 _trigger_summary src/mkdocs_terok/ci_map.py
21 _section_dependency_report src/mkdocs_terok/code_metrics.py
18 _section_layer_overview src/mkdocs_terok/code_metrics.py
16 _section_dead_code src/mkdocs_terok/code_metrics.py
16 _walk_source_tree src/mkdocs_terok/code_metrics.py
16 _yaml_default src/mkdocs_terok/config_reference.py
16 _domain_groups src/mkdocs_terok/module_map.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.