Releases: tkwind/repoclean
Releases · tkwind/repoclean
Repoclean v0.8.0
Gatekeeper Mode
- New command:
repoclean gate - Shows a strict repo safety/hygiene table
- Outputs repo health score (0–100)
- Supports staged-only gatekeeping:
repoclean gate --staged-only
Tracked Junk Detection + Fix
- Detect junk already tracked by git (
__pycache__,.pyc,.log,.tmp, etc.) - Command:
repoclean tracked-junk - Fix:
repoclean tracked-junk --fix(removes from index, keeps files locally)
Repo Health Checks
- Detect missing
.gitignore - Detect
.envexists but is not ignored
Config upgrades
.repoclean.tomlsupports extending junk rules:junk_dirsjunk_filesjunk_extensions
Hook + CI improvements
- CI supports new fail categories:
tracked-junkgitignoreenv
- Pre-commit hook now runs in staged-only mode for speed + relevance.
Bug fixes
- Correct auto-unstage / git index updates for staged-only cleanup
- prevents “commit contains deleted blob” type issues
repoclean v0.7.0
- Added --staged-only support (scan/fix only staged files)
- Added repoclean fix --staged-only (removes staged junk safely)
- Pre-commit hook now runs in staged-only mode (fast + relevant)
- Hook strict mode blocks on junk/sensitive/large + secrets
- Hook warn mode blocks only secrets (allows commit otherwise)
- Improved junk detection rules (.log/.tmp/.swp, cache dirs, build artifacts)
- Added config-driven ignore + allowlist behavior improvements
repoclean v0.6.0
- Added severity levels (low/medium/high/critical)
- Added entropy detection for suspicious high-randomness tokens
- Added support for more real-world token patterns (GitHub, Slack, Stripe, Telegram, JWT, etc.)
- Added --min-severity and --fail-on flags for CI/hook workflows
repoclean v0.5.2
- Fixed missing tomli dependency on Python 3.10 (GitHub Actions install issue)
repoclean v0.5.1
- Fixed pre-commit hook execution on Windows by using a shell wrapper that invokes Python
repoclean v0.4.0 — CI mode + scan gating
v0.4.0
Added
- Scan gating with
repoclean scan --fail-on junk,sensitive,large repoclean cicommand for CI pipelines- Consistent exit codes for automation
Install
pip install repoclean-cli
repoclean v0.3.0 — Config & Ignore Rules
v0.3.0
Added
.repoclean.tomlconfiguration support- Ignore rules applied to scan / secrets / fix
- Allowlist paths for secrets scanning
repoclean config initcommand
Install
pip install repoclean-cli
Notes
- CLI command remains
repoclean
v0.2.2
repoclean v0.2.0
Added
-
repoclean secrets to detect common token/credential patterns
-
repoclean install-hook / uninstall-hook for git pre-commit integration
repoclean v0.1.0
Features
-
repoclean scan — detects junk folders/files, missing .gitignore, large files, sensitive file indicators
-
repoclean init — generates a safe default .gitignore
-
repoclean fix — safe cleanup with dry-run + confirmation