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§
- Code
Smells Detector - Detects CodeSmells signal: unsafe blocks, magic numbers, unnecessary clone, etc.
- Duplication
Detector - Detects Duplication signal: intra-file duplicated code blocks.
- Hotfix
Culture Detector - Detects HotfixCulture signal: println!, dbg!, todo!, unimplemented! calls.
- Legacy
Code Detector - Detects LegacyCode signal: blocks of commented-out code left in source.
- Line
Count Smell Detector - Detects LineCountSmell signal: files exceeding reasonable line thresholds.
- Naming
Chaos Detector - Detects NamingChaos signal: single-letter vars, terrible/meaningless names, Hungarian notation, and abbreviation abuse.
- Nested
Hell Detector - Detects NestedHell signal: deeply-nested block scopes (≥5 levels).
- Over
Engineering Detector - Detects OverEngineering signal: god functions (>50 lines) and excessive params (>5).
- Panic
Addiction Detector - Detects PanicAddiction signal: .unwrap(), .expect(), panic!() calls.
- Todo
Mountain Detector - Detects TodoMountain signal: TODO/FIXME/BUG/HACK markers in comments.