mvnmgrx / kiutils

Simple and SCM-friendly KiCad file parser based on Python dataclasses for KiCad 6.0 and up.
GNU General Public License v3.0
78 stars 25 forks source link

Severity options in custom rules should not have quotes #108

Closed hlprasu closed 9 months ago

hlprasu commented 9 months ago

Severity options should not have quotes. Otherwise, it will be a syntax error in DRCs.

Example:

(rule "A"
  (constraint hole_clearance (min "0.5mm"))
  (severity exclusion))
             ^^^^^^^^ <- correct

(rule "A"
  (constraint hole_clearance (min "0.5mm"))
  (severity "exclusion"))
             ^^^^^^^^^ <- syntax error here
hlprasu commented 9 months ago

@mvnmgrx Kindly review and merge if acceptable.