Skip to main content

Module detectors

Module detectors 

Source
Expand description

Direct signal detectors for the StyleSignal system.

Each detector implements SignalDetector and produces scores directly from parsed AST files, bypassing the Rule → Issue pipeline.

Structs§

CodeSmellsDetector
Detects CodeSmells signal: unsafe blocks, magic numbers, unnecessary clone, etc.
DuplicationDetector
Detects Duplication signal: intra-file duplicated code blocks.
HotfixCultureDetector
Detects HotfixCulture signal: println!, dbg!, todo!, unimplemented! calls.
LegacyCodeDetector
Detects LegacyCode signal: blocks of commented-out code left in source.
LineCountSmellDetector
Detects LineCountSmell signal: files exceeding reasonable line thresholds.
NamingChaosDetector
Detects NamingChaos signal: single-letter vars, terrible/meaningless names, Hungarian notation, and abbreviation abuse.
NestedHellDetector
Detects NestedHell signal: deeply-nested block scopes (≥5 levels).
OverEngineeringDetector
Detects OverEngineering signal: god functions (>50 lines) and excessive params (>5).
PanicAddictionDetector
Detects PanicAddiction signal: .unwrap(), .expect(), panic!() calls.
TodoMountainDetector
Detects TodoMountain signal: TODO/FIXME/BUG/HACK markers in comments.