Dev Janitor is an open-source developer productivity tool designed to automatically clean up stale, unused, or poorly maintained code patterns in a codebase, helping teams keep their repositories tidy without consuming engineering time manually pruning technical debt. The tool analyzes project files and identifies opportunities to perform cleanup tasks such as removing dead imports, fixing outdated syntax, simplifying redundant expressions, and consolidating duplicated logic, all while observing established conventions for the languages it supports. Through a pluggable rule system, it allows teams to enforce their own style guides or cleanup policies, enabling tailored automation that fits each codebase’s unique needs. It is built for integration into continuous integration and deployment (CI/CD) pipelines or pre-commit workflows, so cleanup suggestions can be surfaced and applied incrementally rather than as a massive refactor.
Features
- Automatic detection of stale or unused code patterns
- Pluggable rule system for custom cleanup policies
- Integration with CI/CD and pre-commit workflows
- Language-aware cleanup actions with semantic safety
- Local interactive preview of suggested edits
- Configurable severity and rule toggling