RepoMind report - sample_project

C:\antigravityProjects\RepoMind\tests\fixtures\sample_project - 7 files, 211 source lines - 0.06 s

0/100 - grade F
11findings
0suppressed
7internal modules
1import cycles

Summary

1 critical 2 high 5 medium 3 low 0 info

complexity: 3 correctness: 1 dead-code: 3 dependencies: 1 design: 1 maintainability: 2

Findings (11)

SeverityRuleLocationMessageSuggestion
criticalcomplexity/high-cognitive-complexitysamplepkg/complex.py:4`samplepkg.complex.tangled_branches` has cognitive complexity 40 (warn >= 15).Flatten nesting with guard clauses or extract the nested logic into a well-named helper.
highcorrectness/syntax-errorsamplepkg/broken.py:1`samplepkg/broken.py` cannot be parsed: line 3: invalid syntax.Fix the syntax error, then run RepoMind again.
highdesign/god-objectsamplepkg/god.py:12Class `GodClass` in samplepkg/god.py looks like a god object (16 methods >= 15).Identify cohesive responsibilities and extract them into collaborators; keep the class focused on one reason to change.
mediumdependencies/cyclic-importsamplepkg/a.py2 modules form an import cycle: samplepkg.a <-> samplepkg.b.Extract the shared abstractions into a new module both sides can import, or invert one direction with an interface/protocol.
mediumcomplexity/deep-nestingsamplepkg/complex.py:4`samplepkg.complex.tangled_branches` nests control flow 5 levels deep (warn >= 4).Use guard clauses, early returns or extract the inner blocks into separate functions.
mediumcomplexity/high-cyclomatic-complexitysamplepkg/complex.py:4`samplepkg.complex.tangled_branches` has cyclomatic complexity 13 (warn >= 10, critical >= 20).Split the function into smaller pieces, extract helpers or replace nested branches with early returns.
mediummaintainability/too-many-parameterssamplepkg/complex.py:40`samplepkg.complex.too_many_parameters` takes 6 parameters (warn > 5).Group related arguments into a dataclass or config object, or split the function by responsibility.
mediummaintainability/long-functionsamplepkg/complex.py:52`samplepkg.complex.long_function` is 63 lines long (warn >= 60).Look for cohesive blocks inside the function and extract them into named helpers.
lowdead-code/unused-importsamplepkg/dead.py:3`import json` in samplepkg/dead.py is never used.Remove the import; if it exists for re-export purposes, make that explicit with an ``as`` alias or ``__all__``.
lowdead-code/unused-importsamplepkg/dead.py:4`from collections import Counter` in samplepkg/dead.py is never used.Remove the import; if it exists for re-export purposes, make that explicit with an ``as`` alias or ``__all__``.
lowdead-code/unused-private-functionsamplepkg/dead.py:17Private function `samplepkg.dead._never_used` is never referenced.Delete it, or make it public if it is part of the intended API; dynamic usage hides under string lookups and can be whitelisted by configuring ``exclude``.

Dependency graph

7 modules, 3 internal imports, 1 cycles, 2 external packages.

cycle: samplepkg.a <-> samplepkg.b

Thresholds used

cyclomatic_warn10
cyclomatic_high15
cyclomatic_critical20
cognitive_warn15
cognitive_high25
cognitive_critical40
function_length_warn60
function_length_high100
function_length_critical200
parameters_warn5
parameters_high8
nesting_warn4
nesting_high6
file_loc_warn400
file_loc_high800
file_loc_critical1500
god_object_methods15
god_object_loc250
god_object_wmc70
hotspot_min_cyclomatic10
hotspot_min_commits5

Report generated 2026-09-22 08:09 UTC