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

Method run

ci/lint/orchestrator.py:40–63  ·  view source on GitHub ↗

Run all lint stages. Returns: True if all stages passed, False otherwise

(self)

Source from the content-addressed store, hash-verified

38 self.stage_metadata: dict[str, dict[str, str]] = {}
39
40 def run(self) -> bool:
41 """
42 Run all lint stages.
43
44 Returns:
45 True if all stages passed, False otherwise
46 """
47 if not self.stages:
48 return True
49
50 # Create temp directory for output capture
51 self.tmpdir = Path(tempfile.mkdtemp(prefix="fastled_lint_"))
52
53 try:
54 if self.parallel and len(self.stages) > 1:
55 return self._run_parallel()
56 else:
57 return self._run_inline()
58 finally:
59 # Cleanup temp directory
60 if self.tmpdir and self.tmpdir.exists():
61 import shutil
62
63 shutil.rmtree(self.tmpdir, ignore_errors=True)
64
65 def _run_parallel(self) -> bool:
66 """Run stages in parallel with ThreadPoolExecutor."""

Callers 15

mainFunction · 0.95
run_clang_tidyFunction · 0.45
run_cpp_lintFunction · 0.45
run_iwyu_pragma_checkFunction · 0.45
run_iwyu_analysisFunction · 0.45
run_js_lintFunction · 0.45
run_ruffFunction · 0.45
run_tyFunction · 0.45
run_pyrightFunction · 0.45
run_cpp_lint_single_fileFunction · 0.45
run_iwyu_single_fileFunction · 0.45

Calls 2

_run_parallelMethod · 0.95
_run_inlineMethod · 0.95

Tested by 1

_rust_recordsFunction · 0.36