Documentation
¶
Overview ¶
Package builtin is the standard EE rule catalog. Each rule is a check.Rule value in a rule_*.go file, with its documentation and an Eval. A file may hold a few related rules. The package also holds the declarative-twin Specs, and the parity tests hold them to those Evals. It registers through the same public hook an extension uses, so the core engine (package check) owns no rules. Blank-importing this package installs the catalog as the anonymous built-in source, and a program that omits the import runs with no built-ins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RuleDocImageHandler ¶
RuleDocImageHandler serves the rule docs' embedded explainer images as a read-only static route. The images are the diagrams a docs/<rule>.md references (WS3-025). The route lets the web rules/expectations panels resolve the relative image refs in Rule.Detail (WS9-030). Only image files under docs/images/ are served (.svg and .png). Any other path, including the markdown itself, a directory, or a traversal attempt, is 404. Mount it under a prefix (the handler sees the directory, or a traversal attempt, is 404. Mount it under a prefix (the handler sees the prefix-stripped, relative path, e.g. "images/single-pin-net.svg"). SVG's content-type is set explicitly because Go's mime table resolves .svg only from the host's mime files, which CI/WASM may lack.
Types ¶
This section is empty.
Source Files
¶
- docs.go
- register.go
- rule_board_drc.go
- rule_bulk_cap.go
- rule_bus_not_modeled.go
- rule_bus_spelling_not_a_bus.go
- rule_cap_voltage.go
- rule_copper_clearance.go
- rule_crystal_load_caps.go
- rule_dangling_endpoint.go
- rule_decoupling_present.go
- rule_diff_pair_naming.go
- rule_duplicate_ref_des.go
- rule_esd_clamp_not_tvs.go
- rule_esd_protection.go
- rule_fet_vdss_below_rail.go
- rule_floating_input.go
- rule_i2c_pull_up.go
- rule_i2c_redundant_pull_up.go
- rule_input_protection.go
- rule_led_polarity.go
- rule_load_switch_trip_current.go
- rule_net_names.go
- rule_netclass_conformance.go
- rule_pin_matrix.go
- rule_pin_net_conflict.go
- rule_pin_rating.go
- rule_pin_tracking.go
- rule_power_input_not_driven.go
- rule_rail_nominal.go
- rule_rail_not_classified.go
- rule_regulator_output_abs_max.go
- rule_resonator_redundant_load_caps.go
- rule_reverse_blocking.go
- rule_single_pin_net.go
- rule_supply_abs_max.go
- rule_symbol_unresolved.go
- rule_test_point.go
- rule_unannotated_components.go
- rule_unconnected_component.go
- rule_unconnected_pin.go
- rule_wire_no_junction.go
- supply.go
- verdicts.go