imrishabh18/rp2040-motor-controller
Bottom-side PCB silkscreen artwork implementing mirrored tsCircuit logos as embedded SVG paths, with via-clearance-aware placement and no active electronics.
- Version
- 1.0.57
- License
- unset
- Stars
- 5
scripts/analyze-style.ts
import { analyzeSchematicPlacement } from "../vendor/schematic-style-analysis";
const file = process.argv[2] ?? "dist/schematic/circuit.json";
const analysis = analyzeSchematicPlacement(await Bun.file(file).json());
await Bun.write(
"reports/schematic-style.json",
JSON.stringify(analysis.getIssues(), null, 2),
);
console.log(analysis.toString());
console.log("Issue count:", analysis.getIssues().length);
if (analysis.getIssues().length) process.exitCode = 1;