Lint Offgrid
lint_offgridReport and optionally fix off-grid connection points in KiCad schematics, snapping them to the 50-mil grid to ensure correct junction placement without altering formatting.
Instructions
Report every off-grid connection-relevant coordinate in a schematic — wire/bus endpoints, symbol origins, label/junction/no_connect anchors — and optionally snap them to the nearest grid point (fix: true). KiCad's connection grid is fixed at 50 mil (1.27 mm) and junction placement uses exact matching, so a single off-grid endpoint can poison junction placement for a whole sheet. Unlike snap_to_grid (whole-file rewrite), fixes here are byte-exact text splices that preserve file formatting; (lib_symbols) content and property field positions are never touched. Offenders more than 0.5 mm off-grid are reported as NEEDS HUMAN and never auto-snapped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | Snap offenders in place (default false: report only) | |
| gridSize | No | Grid spacing in mm (default: 1.27 mm = 50 mil, the KiCad connection grid) | |
| schematicPath | Yes | Path to the .kicad_sch schematic file |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |