Check if include path is a top-level file (no directory separator). Top-level includes like "FastLED.h", "pixeltypes.h" are valid since they refer to files directly in src/.
(include_path: str)
| 156 | |
| 157 | |
| 158 | def is_top_level_include(include_path: str) -> bool: |
| 159 | """Check if include path is a top-level file (no directory separator). |
| 160 | |
| 161 | Top-level includes like "FastLED.h", "pixeltypes.h" are valid since |
| 162 | they refer to files directly in src/. |
| 163 | """ |
| 164 | return "/" not in include_path and "\\" not in include_path |
| 165 | |
| 166 | |
| 167 | def looks_like_fastled_code(include_path: str) -> bool: |
no outgoing calls
no test coverage detected