Skip to main content

Module commented

Module commented 

Source
Expand description

Commented-out-code detection (eradicate / flake8-eradicate E800). Flags comment lines whose stripped text parses as Python code (import, def, return, assignments, control flow) rather than prose. Tool directives (noqa, type:, mypy:, TODO, mollify:, shebangs) are never flagged. Orthogonal to reachability — it’s about dead text, not dead symbols.

Functions§

analyze
Emit a commented-code finding per comment line that looks like code.
analyze_source
Commented-code findings from a file’s source text (also the live LSP path).