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

Function check_js_files_changed

ci/js_lint_cache.py:32–56  ·  view source on GitHub ↗

Check if JavaScript/TypeScript directories have changed since the last lint run. Monitors: - src/platforms/wasm/compiler (JavaScript files) - ci/docker_utils/avr8js (TypeScript files) Uses zccache-fingerprint for blake3-based change detection. Returns: True if dir

()

Source from the content-addressed store, hash-verified

30
31
32def check_js_files_changed() -> bool:
33 """
34 Check if JavaScript/TypeScript directories have changed since the last lint run.
35
36 Monitors:
37 - src/platforms/wasm/compiler (JavaScript files)
38 - ci/docker_utils/avr8js (TypeScript files)
39
40 Uses zccache-fingerprint for blake3-based change detection.
41
42 Returns:
43 True if directories changed and linting should run
44 False if no changes detected and linting can be skipped
45 """
46 cache = _get_js_lint_cache()
47 needs_update = cache.check_needs_update(include=_JS_LINT_INCLUDE)
48
49 if needs_update:
50 print_cache_miss("Changes detected in JavaScript/TypeScript directories")
51 return True
52 else:
53 print_cache_hit(
54 "No changes in JavaScript/TypeScript directories - skipping lint"
55 )
56 return False
57
58
59def mark_lint_success() -> None:

Callers 1

mainFunction · 0.85

Calls 4

print_cache_missFunction · 0.90
print_cache_hitFunction · 0.90
_get_js_lint_cacheFunction · 0.85
check_needs_updateMethod · 0.45

Tested by

no test coverage detected