← Back to team overview

kicad-lib-committers team mailing list archive

Re: Tool checking/fixing some KLC rules

 

Hi Michal,

This is very great. When ready, we will write in the "How to Contribute"
document that this tool must be run before each pull request.

Carl

On Mon, Feb 2, 2015 at 5:25 PM, nnn <nnn4000@xxxxx> wrote:

> I'd like to announce that I'm writing some code to help checking/fixing
> some KLC footprints.
>
> https://github.com/michal777/KiCad_Lib_Check/blob/master/lib_check.c
>
>
> The program takes .kicad_mod files from given location and checks some of
> rules line by line. If there are no tests for some kind of line or the line
> is OK then it's copied to temporary file. If there is some problem, eg.
> wrong line width for courtyard, program suggests fixing it and in this case
> changes the line width (copies modified line). If user accepts changes, the
> temporary file is copied to original file.
> It's easy to use and can ease finding and fixing some common problems.
> At the moment it can fix: name, reference, value, font size, courtyard
> line width, silkscreen line width, unnecessary lines (rotation allowance,
> clearance specified at footprint level), path to 3D model (if exists but
> with wrong name). More tests can be added.
>
>
> Michał Stec
>
> --
> Mailing list: https://launchpad.net/~kicad-lib-committers
> Post to     : kicad-lib-committers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-lib-committers
> More help   : https://help.launchpad.net/ListHelp
>

References