Skip to content

Commit 8e91ea9

Browse files
committed
docs: update documentation for infrastructure detection (#105)
- Added CHANGELOG.md entry for infrastructure-without-implementation detection - Updated README.md /deslop-around detects list - Synced lib/patterns/ files to all plugin directories Infrastructure detection identifies unused database clients, cache connections, API clients, queue connections, and other infrastructure components that are configured but never wired to anything.
1 parent d9fd7c6 commit 8e91ea9

12 files changed

Lines changed: 3631 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7171
- All patterns have severity `high` and autoFix `flag` (requires manual review)
7272
- Test files are excluded to prevent false positives
7373

74+
- **Infrastructure-Without-Implementation Detection** - New pattern for `/deslop-around` command (#105)
75+
- Detects infrastructure components that are configured but never used
76+
- Supports JavaScript, Python, Go, and Rust
77+
- Identifies unused database clients, cache connections, API clients, queue connections, event emitters
78+
- Tracks usage across files to avoid false positives
79+
- Excludes exported/module.exports patterns (intentional infrastructure setup files)
80+
- Severity `high`, autoFix `flag` (requires manual review)
81+
- New `analyzeInfrastructureWithoutImplementation()` function in slop-analyzers.js
82+
- Comprehensive test suite with 600+ test cases
83+
7484
### Fixed
7585
- **findMatchingBrace** - Now skips comments to avoid breaking on quotes/apostrophes in comment text (e.g., "it's", "we're")
7686
- **Reality Check Output Size** - Condensed collector output to ~700 lines/~4.5k tokens (was thousands of lines)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ Remove debugging code, old TODOs, and AI slop from your codebase.
168168
- Placeholder functions (`return 0`, `todo!()`, `raise NotImplementedError`)
169169
- Excessive documentation (JSDoc >3x function body)
170170
- Phantom references (issue/PR mentions, file path references in comments)
171+
- Infrastructure components configured but never used (unused DB clients, caches, API clients)
171172

172173
---
173174

0 commit comments

Comments
 (0)