Skip to content
breadkit-lint
All rules

Layout/BodyOverlap

Two component bodies intersect even though their leads use different holes. This rule checks rectangular modules with render.size_mm, DIP bodies whose complete pin rows establish their position, and circular 5 mm LED bodies (led_5mm or rgb_led_5mm). Touching edges do not count as an overlap.

board :half
led :D1, anode: "a10", cathode: "a11"
led :D2, anode: "b11", cathode: "b12"

Move one part until its body clears the other. The DIP rectangle follows the rendered body between its pin rows; incomplete or misaligned DIP placements are skipped. Other component shapes without reliable body dimensions are not checked. Module comparisons are skipped when the installed Breadkit version cannot provide body bounds.