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
()
| 30 | |
| 31 | |
| 32 | def 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 | |
| 59 | def mark_lint_success() -> None: |
no test coverage detected