[Fix] Remove all emoji violations from code files
- Replaced emojis with ASCII text markers ([OK], [ERROR], [WARNING], etc.) - Fixed 38+ violations across 20 files (7 Python, 6 shell scripts, 6 hooks, 1 API) - All modified files pass syntax verification - Conforms to CODING_GUIDELINES.md NO EMOJIS rule Details: - Python test files: check_record_counts.py, test_*.py (31 fixes) - API utils: context_compression.py regex pattern updated - Shell scripts: setup/test/install/upgrade scripts (64+ fixes) - Hook scripts: task-complete, user-prompt-submit, sync-contexts (10 fixes) Verification: All files pass syntax checks (python -m py_compile, bash -n) Report: FIXES_APPLIED.md contains complete change log Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -20,7 +20,7 @@ DROP DATABASE IF EXISTS test;
|
||||
DELETE FROM mysql.db WHERE Db='test' OR Db='test\\_%';
|
||||
FLUSH PRIVILEGES;
|
||||
EOF
|
||||
echo "✓ MariaDB secured"
|
||||
echo "[OK] MariaDB secured"
|
||||
echo ""
|
||||
|
||||
# Create ClaudeTools database
|
||||
@@ -36,20 +36,20 @@ GRANT ALL PRIVILEGES ON claudetools.* TO 'claudetools'@'localhost';
|
||||
|
||||
FLUSH PRIVILEGES;
|
||||
EOF
|
||||
echo "✓ Database and users created"
|
||||
echo "[OK] Database and users created"
|
||||
echo ""
|
||||
|
||||
# Configure for network access
|
||||
echo "[3/4] Configuring MariaDB for network access..."
|
||||
sudo sed -i 's/bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/' /etc/mysql/mariadb.conf.d/50-server.cnf
|
||||
sudo systemctl restart mariadb
|
||||
echo "✓ Network access configured"
|
||||
echo "[OK] Network access configured"
|
||||
echo ""
|
||||
|
||||
# Test connection
|
||||
echo "[4/4] Testing connection..."
|
||||
mysql -h localhost -u claudetools -pCT_e8fcd5a3952030a79ed6debae6c954ed -e "SELECT 'Connection successful!' AS status, DATABASE() AS current_db;"
|
||||
echo "✓ Connection test passed"
|
||||
echo "[OK] Connection test passed"
|
||||
echo ""
|
||||
|
||||
echo "=========================================="
|
||||
|
||||
Reference in New Issue
Block a user