1.6 KiB
1.6 KiB
| id | type | title | tags | importance | confidence | created | updated | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 803b3f29-f38f-4739-aa09-1d1db5e42eb3 | insight | Cross-cutting code quality anti-patterns in Major Domo and Paper Dynasty repos |
|
0.6 | 0.8 | 2026-02-20T06:57:40.762074+00:00 | 2026-02-20T06:57:40.762074+00:00 |
Recurring Code Quality Issues Across MD + PD Projects
Context
Discovered during a full audit of all 5 active repos (major-domo-v2, major-domo-database, paper-dynasty-discord, paper-dynasty-database, paper-dynasty-card-creation).
Anti-Patterns Found in Multiple Repos
Security (Critical)
- Hardcoded secrets — API tokens, webhook URLs, Supabase JWTs committed to git in: MD database, PD card-creation, PD bot
- Bearer tokens logged in plaintext on auth failures in both database projects
Error Handling
- Bare
except:or broadexcept Exception:blocks swallowing errors — present in all 5 repos
Debug Artifacts
print()statements left in production code — MD database, PD database, PD bot
Database / Performance
- Manual
db.close()connection management instead of middleware/context managers — both database projects - N+1 query patterns — both database APIs
Testing
- PD database has zero tests
- PD card-creation tests always pass without actually running (broken test setup)
Priority Guidance
When working on any of these repos, treat hardcoded secrets and bare excepts as first-priority items. These are cross-cutting concerns that apply to all projects in this ecosystem.