AI-generated code debt scanner. Grade your codebase A-F.
Project description
debtx
AI-generated code debt scanner. Grade your codebase A-F.
Install
pip install debtx
Usage
debtx scan .
debtx scan ./src --format md
debtx scan . --strict
debtx badge
What it detects
12 categories of "vibe code" anti-patterns that AI coding agents commonly produce:
| Detector | What it catches |
|---|---|
| Giant Functions | Functions over 100 lines |
| Empty Catches | Silent error swallowing |
| Hardcoded Values | URLs, IPs, secrets, magic numbers |
| Duplicated Blocks | Copy-paste code patterns |
| Missing Error Handling | IO ops without try/except |
| Orphaned Imports | Unused imports |
| No Test Coverage | Source files with no tests |
| Massive Files | Files over 500 lines |
| TODO/FIXME Comments | Unresolved markers |
| Inconsistent Naming | Mixed camelCase/snake_case |
| Deep Nesting | 4+ levels of indentation |
| Dead Code | Unreachable code after return/break |
Grading Scale
| Grade | Score | Meaning |
|---|---|---|
| A | 90-100 | Clean codebase |
| B | 75-89 | Minor issues |
| C | 55-74 | Needs attention |
| D | 35-54 | Significant debt |
| F | 0-34 | Critical debt |
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
debtx-0.1.0.tar.gz
(18.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
debtx-0.1.0-py3-none-any.whl
(28.2 kB
view details)
File details
Details for the file debtx-0.1.0.tar.gz.
File metadata
- Download URL: debtx-0.1.0.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e026e057834dedb688b0ad8f3753385c659dbaf07e17ab8a64ceaf6c2badd961
|
|
| MD5 |
c3b6c5f16bb70eefa8286a225d4c68b3
|
|
| BLAKE2b-256 |
7fc156066add6d65da94f22b24114001a5a6744b693a1b241668aefad14c976f
|
File details
Details for the file debtx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: debtx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 28.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d434561cf018a91845eb86ff81a18af3c79f1267d7bd26b47d5c8e679ac920e7
|
|
| MD5 |
99880bc2a48ccc948366b6f19ccbdbb9
|
|
| BLAKE2b-256 |
d1d34ff1c833bd93ea763e562dd1292fd0fcfd459cca335c771e96d1ee176300
|