0.0
The project is in a healthy, maintained state
bklint analyzes Breadkit circuits and reports layout, electrical, and intent offenses.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

~> 0.2.0
~> 1.9
 Project Readme

breadkit-lint

Catch breadboard wiring mistakes before you build.

RubyGems version CI status Ruby 3.3 or newer MIT license

bklint checks Breadkit circuits for placement, electrical, and connection-intent errors. It accepts Ruby DSL, YAML, TOML, and JSON IR.

Quick start

gem install breadkit-lint
bklint circuit.bk.rb
bklint circuit.bk.rb --format sarif --out lint.sarif

This README follows main (0.2.0), which requires Breadkit core 0.2.x. If the published gems are older, run both main branches from sibling checkouts:

git clone https://github.com/breadkit/breadkit.git
git clone https://github.com/breadkit/breadkit-lint.git
cd breadkit-lint
bundle install
bundle exec bklint ../breadkit/examples/01_led_button.bk.rb

What it checks

Area Example
Layout Conflicting or invalid placements.
Electrical Shorts, polarity, ratings, and missing protection.
Intent Connections that differ from declared expectations.
Style Wire colors that conflict with their net role.

Run bklint --list-rules to discover rules or bklint --explain RULE for specific guidance. The rule reference contains the full list.

Documentation

Ruby DSL files and configuration require entries can execute code. Inspect only trusted files; use JSON IR for data-only input.

Development

From the sibling checkout above, run bundle exec rake for the local checks.

License

MIT.