Skip to content

Code Metrics

Generated: 2026-05-22 17:03 UTC


Lines of Code

Files Code Comment Blank Total
Source 11 2 296 488 325 3 109
Tests 10 1 701 187 336 2 224
Combined 21 3 997 675 661 5 333
  • Comment/code ratio: 21%
  • Test/source ratio: 74.1%
Source by module (click to expand)
Module Files Code Comment Blank
mkdocs_terok/ 11 2 296 488 325
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 768 72 53
mkdocs_terok/config_reference.py 210 82 51
mkdocs_terok/inventory.py 106 51 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

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: 85.7% (1136/1326 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: 94
  • Median complexity: 3.0 · Average: 5.3 · Max: 28
  • Within threshold (15): 91% (86/94)
    0–  3 │ ██████████████████████████████  51 (54.3%)
    4–  6 │ ████████                        13 (13.8%)
    7–  9 │ ███████                         12 (12.8%)
   10– 12 │ █████                            9 ( 9.6%)
   13– 15 │ █                                1 ( 1.1%) ◄ threshold
   16– 18 │ ██                               4 ( 4.3%)
   19– 21 │ █                                2 ( 2.1%)
   22– 25 │ █                                1 ( 1.1%)
   26+    │ █                                1 ( 1.1%)

8 functions exceeding threshold:

Complexity Function File
28 _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: 114 - Found: 114 - 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.