Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- All patterns have severity `high` and autoFix `flag` (requires manual review)
- Test files are excluded to prevent false positives

- **Infrastructure-Without-Implementation Detection** - New pattern for detecting unused infrastructure components (#105)
- Detects infrastructure components that are configured but never used
- Supports JavaScript, Python, Go, and Rust
- Identifies unused database clients, cache connections, API clients, queue connections, event emitters
- Tracks usage across files to avoid false positives
- Excludes exported/module.exports patterns (intentional infrastructure setup files)
- Severity `high`, autoFix `flag` (requires manual review)

Copilot AI Jan 21, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The severity is documented as 'high' in the CHANGELOG, but the actual pattern definition in all slop-patterns.js files sets severity to 'low'. This inconsistency should be corrected to match the implementation.

Suggested change
- Severity `high`, autoFix `flag` (requires manual review)
- Severity `low`, autoFix `flag` (requires manual review)

Copilot uses AI. Check for mistakes.
- New `analyzeInfrastructureWithoutImplementation()` function in slop-analyzers.js
- Focused test suite covering key scenarios and edge cases

### Fixed
- **findMatchingBrace** - Now skips comments to avoid breaking on quotes/apostrophes in comment text (e.g., "it's", "we're")
- **Reality Check Output Size** - Condensed collector output to ~700 lines/~4.5k tokens (was thousands of lines)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ Remove debugging code, old TODOs, and AI slop from your codebase.
- Placeholder functions (`return 0`, `todo!()`, `raise NotImplementedError`)
- Excessive documentation (JSDoc >3x function body)
- Phantom references (issue/PR mentions, file path references in comments)
- Infrastructure components configured but never used (unused DB clients, caches, API clients)

---

Expand Down
Loading
Loading