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

Function main

ci/lint_cpp/test_unity_build.py:1176–1198  ·  view source on GitHub ↗

Run standalone check.

()

Source from the content-addressed store, hash-verified

1174
1175
1176def main() -> int:
1177 """Run standalone check."""
1178 result = check()
1179
1180 if result.success:
1181 print("✅ Unity build integrity verified:")
1182 print(" - All .cpp.hpp files referenced in _build.cpp.hpp files")
1183 print(" - _build.cpp.hpp hierarchy correctly structured (one level at a time)")
1184 print(" - Build files in src/fl/build/ correctly configured")
1185 print(" - Platform pre-headers present in all build files")
1186 print(" - library.json srcFilter correctly configured")
1187 return 0
1188 else:
1189 print("❌ Unity build violations found:")
1190 for violation in result.violations:
1191 print(f" - {violation}")
1192 print(f"\nTotal violations: {len(result.violations)}")
1193 print("\nFixes:")
1194 print(" - Add missing #include lines to _build.cpp.hpp files")
1195 print(" - Ensure _build.cpp.hpp files only include immediate children")
1196 print(" - Ensure build files in src/fl/build/ have platform pre-headers")
1197 print(" - Update library.json srcFilter to reference all build files")
1198 return 1
1199
1200
1201if __name__ == "__main__":

Callers 1

Calls 2

checkFunction · 0.70
printFunction · 0.50

Tested by

no test coverage detected