[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:
@@ -101,7 +101,7 @@ def test_scan_for_credential_files():
|
||||
logger.info(f" - {file_path}")
|
||||
|
||||
assert len(found_files) == 3, "Should find 3 credential files"
|
||||
logger.info("\n✓ Test 1 passed")
|
||||
logger.info("\n[PASS] Test 1 passed")
|
||||
|
||||
return found_files
|
||||
|
||||
@@ -139,7 +139,7 @@ def test_parse_credential_file():
|
||||
|
||||
logger.info(f"Total credentials parsed: {total_credentials}")
|
||||
assert total_credentials > 0, "Should parse at least one credential"
|
||||
logger.info("✓ Test 2 passed")
|
||||
logger.info("[PASS] Test 2 passed")
|
||||
|
||||
|
||||
def test_import_credentials_to_db():
|
||||
@@ -168,8 +168,8 @@ def test_import_credentials_to_db():
|
||||
ip_address="127.0.0.1"
|
||||
)
|
||||
|
||||
logger.info(f"\n✓ Successfully imported {imported_count} credential(s)")
|
||||
logger.info("✓ Test 3 passed")
|
||||
logger.info(f"\n[OK] Successfully imported {imported_count} credential(s)")
|
||||
logger.info("[PASS] Test 3 passed")
|
||||
|
||||
return imported_count
|
||||
|
||||
@@ -209,7 +209,7 @@ def test_full_workflow():
|
||||
|
||||
assert results['files_found'] > 0, "Should find files"
|
||||
assert results['credentials_parsed'] > 0, "Should parse credentials"
|
||||
logger.info("\n✓ Test 4 passed")
|
||||
logger.info("\n[PASS] Test 4 passed")
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Workflow failed: {str(e)}")
|
||||
@@ -251,7 +251,7 @@ Connection_String: mysql://user:pass@host/db
|
||||
logger.info(f" - {cred.get('service_name')} ({cred.get('credential_type')})")
|
||||
|
||||
assert len(credentials) >= 3, "Should parse multiple variations"
|
||||
logger.info("\n✓ Test 5 passed")
|
||||
logger.info("\n[PASS] Test 5 passed")
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user