MEDIUM: Magic Numbers Reduce Maintainability #21
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Magic numbers (hardcoded values like timeouts, thresholds) are scattered throughout the codebase, making it difficult to understand and maintain behavior.
Where It Occurs
Why This Is a Problem
What Can Go Wrong
Scenario 1: Inconsistent Timeout Values
Scenario 2: Performance Tuning
Proposed Fix
Create bot/utils/constants.py with named constants:
Load from config.yaml for override capability.
Severity
MEDIUM - Magic numbers reduce maintainability and cause bugs.
Files Affected
bot/utils/autonomous_engine.py, bot/utils/voice_receiver.py, bot/config.py, bot/bot.py, new file: bot/utils/constants.py