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

Function collect_all_files_by_directory

ci/lint_cpp/run_all_checkers.py:120–166  ·  view source on GitHub ↗

Collect files organized by directory for targeted checker application.

()

Source from the content-addressed store, hash-verified

118
119
120def collect_all_files_by_directory() -> dict[str, list[str]]:
121 """Collect files organized by directory for targeted checker application."""
122 files_by_dir: dict[str, list[str]] = {}
123
124 # Collect src/ files (all subdirectories)
125 files_by_dir["src"] = collect_files_to_check([str(SRC_ROOT)])
126
127 # Collect examples/ files (including .ino files)
128 files_by_dir["examples"] = collect_files_to_check(
129 [str(EXAMPLES_ROOT)], extensions=[".cpp", ".h", ".hpp", ".ino"]
130 )
131
132 # Collect tests/ files
133 files_by_dir["tests"] = collect_files_to_check([str(TESTS_ROOT)])
134
135 # Collect specific subdirectories for targeted checking
136 fl_dir = SRC_ROOT / "fl"
137 if fl_dir.exists():
138 files_by_dir["fl"] = collect_files_to_check([str(fl_dir)])
139
140 lib8tion_dir = SRC_ROOT / "lib8tion"
141 if lib8tion_dir.exists():
142 files_by_dir["lib8tion"] = collect_files_to_check([str(lib8tion_dir)])
143
144 fx_dir = SRC_ROOT / "fx"
145 if fx_dir.exists():
146 files_by_dir["fx"] = collect_files_to_check([str(fx_dir)])
147
148 sensors_dir = SRC_ROOT / "sensors"
149 if sensors_dir.exists():
150 files_by_dir["sensors"] = collect_files_to_check([str(sensors_dir)])
151
152 platforms_shared_dir = SRC_ROOT / "platforms" / "shared"
153 if platforms_shared_dir.exists():
154 files_by_dir["platforms_shared"] = collect_files_to_check(
155 [str(platforms_shared_dir)]
156 )
157
158 platforms_dir = SRC_ROOT / "platforms"
159 if platforms_dir.exists():
160 files_by_dir["platforms"] = collect_files_to_check([str(platforms_dir)])
161
162 third_party_dir = SRC_ROOT / "third_party"
163 if third_party_dir.exists():
164 files_by_dir["third_party"] = collect_files_to_check([str(third_party_dir)])
165
166 return files_by_dir
167
168
169def create_checkers(

Callers 1

mainFunction · 0.85

Calls 1

collect_files_to_checkFunction · 0.90

Tested by

no test coverage detected