MCPcopy Create free account
hub / github.com/FastLED/FastLED / mark_lint_success

Function mark_lint_success

ci/js_lint_cache.py:59–76  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

57
58
59def 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
79def invalidate_cache() -> None:

Callers 1

mainFunction · 0.85

Calls 3

_get_js_lint_cacheFunction · 0.85
printFunction · 0.50
mark_successMethod · 0.45

Tested by

no test coverage detected