Mark the current lint run as successful. Uses the safe pre-computed fingerprint pattern - saves the fingerprint that was computed before linting started, regardless of file changes during the linting process.
()
| 57 | |
| 58 | |
| 59 | def mark_lint_success() -> None: |
| 60 | """ |
| 61 | Mark the current lint run as successful. |
| 62 | |
| 63 | Uses the safe pre-computed fingerprint pattern - saves the fingerprint |
| 64 | that was computed before linting started, regardless of file changes |
| 65 | during the linting process. |
| 66 | """ |
| 67 | cache = _get_js_lint_cache() |
| 68 | |
| 69 | try: |
| 70 | cache.mark_success() |
| 71 | print("📝 Lint success fingerprint updated") |
| 72 | except RuntimeError as e: |
| 73 | print(f"⚠️ Fingerprint update failed: {e}") |
| 74 | print( |
| 75 | " This indicates check_js_files_changed() was not called before linting" |
| 76 | ) |
| 77 | |
| 78 | |
| 79 | def invalidate_cache() -> None: |
no test coverage detected