[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:
@@ -33,7 +33,7 @@ def test_compress_conversation():
|
||||
print(f" Phase: {result['phase']}")
|
||||
print(f" Completed: {result['completed']}")
|
||||
assert result['phase'] in ['api_development', 'testing']
|
||||
print(" ✓ Passed\n")
|
||||
print(" [PASS] Passed\n")
|
||||
|
||||
|
||||
def test_create_snippet():
|
||||
@@ -49,7 +49,7 @@ def test_create_snippet():
|
||||
assert snippet['type'] == 'decision'
|
||||
assert 'fastapi' in snippet['tags']
|
||||
assert snippet['relevance_score'] > 0
|
||||
print(" ✓ Passed\n")
|
||||
print(" [PASS] Passed\n")
|
||||
|
||||
|
||||
def test_extract_tags():
|
||||
@@ -60,7 +60,7 @@ def test_extract_tags():
|
||||
assert 'fastapi' in tags
|
||||
assert 'postgresql' in tags
|
||||
assert 'redis' in tags
|
||||
print(" ✓ Passed\n")
|
||||
print(" [PASS] Passed\n")
|
||||
|
||||
|
||||
def test_extract_decisions():
|
||||
@@ -71,7 +71,7 @@ def test_extract_decisions():
|
||||
if decisions:
|
||||
print(f" First decision: {decisions[0]['decision']}")
|
||||
assert 'fastapi' in decisions[0]['decision'].lower()
|
||||
print(" ✓ Passed\n")
|
||||
print(" [PASS] Passed\n")
|
||||
|
||||
|
||||
def test_calculate_relevance():
|
||||
@@ -87,7 +87,7 @@ def test_calculate_relevance():
|
||||
print(f" Score: {score}")
|
||||
assert 0 <= score <= 10
|
||||
assert score > 8 # Should be boosted
|
||||
print(" ✓ Passed\n")
|
||||
print(" [PASS] Passed\n")
|
||||
|
||||
|
||||
def test_merge_contexts():
|
||||
@@ -98,7 +98,7 @@ def test_merge_contexts():
|
||||
print(f" Merged completed: {merged['completed']}")
|
||||
assert "auth" in merged['completed']
|
||||
assert "crud" in merged['completed']
|
||||
print(" ✓ Passed\n")
|
||||
print(" [PASS] Passed\n")
|
||||
|
||||
|
||||
def test_compress_project_state():
|
||||
@@ -112,7 +112,7 @@ def test_compress_project_state():
|
||||
print(f" Files: {len(state['files'])}")
|
||||
assert state['project'] == "Test"
|
||||
assert state['progress'] == 50
|
||||
print(" ✓ Passed\n")
|
||||
print(" [PASS] Passed\n")
|
||||
|
||||
|
||||
def test_compress_file_changes():
|
||||
@@ -126,7 +126,7 @@ def test_compress_file_changes():
|
||||
assert compressed[0]['type'] == 'api'
|
||||
assert compressed[1]['type'] == 'test'
|
||||
assert compressed[2]['type'] == 'doc'
|
||||
print(" ✓ Passed\n")
|
||||
print(" [PASS] Passed\n")
|
||||
|
||||
|
||||
def test_format_for_injection():
|
||||
@@ -150,7 +150,7 @@ def test_format_for_injection():
|
||||
print(f" Contains 'Context Recall': {'Context Recall' in formatted}")
|
||||
assert "Context Recall" in formatted
|
||||
assert "blocker" in formatted.lower()
|
||||
print(" ✓ Passed\n")
|
||||
print(" [PASS] Passed\n")
|
||||
|
||||
|
||||
def run_all_tests():
|
||||
@@ -178,7 +178,7 @@ def run_all_tests():
|
||||
test()
|
||||
passed += 1
|
||||
except Exception as e:
|
||||
print(f" ✗ Failed: {e}\n")
|
||||
print(f" [FAIL] Failed: {e}\n")
|
||||
failed += 1
|
||||
|
||||
print("=" * 60)
|
||||
|
||||
Reference in New Issue
Block a user