Skip to content

Code Metrics

Generated: 2026-04-03 16:51 UTC


Lines of Code

Files Code Comment Blank Total
Source 9 1 553 290 275 2 118
Tests 8 906 107 210 1 223
Combined 17 2 459 397 485 3 341
  • Comment/code ratio: 19%
  • Test/source ratio: 58.3%
Source by module (click to expand)
Module Files Code Comment Blank
mkdocs_terok/ 9 1 553 290 275
mkdocs_terok/_assets/ 2 276 14 43
mkdocs_terok/__init__.py 7 11 8
mkdocs_terok/ci_map.py 124 22 20
mkdocs_terok/config_reference.py 266 58 12
mkdocs_terok/plugin.py 145 38 41
mkdocs_terok/quality_report.py 534 68 105
mkdocs_terok/ref_pages.py 34 32 14
mkdocs_terok/test_map.py 167 47 32

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 mkdocs import)
mkdocs_terok.plugin 1 Plugin (imports mkdocs + generators)

Test Coverage

Coverage is collected from unit tests in CI and uploaded to Codecov.

Coverage Treemap

Each rectangle represents a source file. Size is proportional to the number of lines; colour shows the coverage percentage (green = high, red = low).

Cognitive Complexity

Threshold: 15 (functions above this are listed below)

  • Functions analyzed: 65
  • Median complexity: 4 · Average: 5.6 · Max: 28
  • Within threshold (15): 89% (58/65)
    0–  3 │ ██████████████████████████████  32 (49.2%)
    4–  6 │ ████████████                    13 (20.0%)
    7–  9 │ ██████                           6 ( 9.2%)
   10– 12 │ ██████                           6 ( 9.2%)
   13– 15 │ █                                1 ( 1.5%) ◄ threshold
   16– 18 │ ███                              3 ( 4.6%)
   19– 21 │ ██                               2 ( 3.1%)
   22– 25 │ █                                1 ( 1.5%)
   26+    │ █                                1 ( 1.5%)

7 functions exceeding threshold:

Complexity Function File
28 _section_complexity src/mkdocs_terok/quality_report.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/quality_report.py
18 _section_layer_overview src/mkdocs_terok/quality_report.py
17 _yaml_default src/mkdocs_terok/config_reference.py
16 _section_dead_code src/mkdocs_terok/quality_report.py

Dead Code Analysis

No dead code found at 80% confidence threshold.

Docstring Coverage

  • Needed: 28; Found: 27; Missing: 1; Coverage: 96.4%
  • Needed: 80 - Found: 79 - Missing: 1
  • Total coverage: 98.8% - Grade: Excellent

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