Skip to content

LIB-21 Symbol or footprint library outside the project's allowed set

Severity Status Implementation
warning planned easy, depends on TOOL-10, CFG-2

Looks at. A project setting (the allowed library nicknames).

What it catches. A symbol's own library, or the library its Footprint field names, whose nickname is not one of a configured set of allowed nicknames (an exact name, or a prefix ending *). The set is a setting with no default: a project that never sets it gets no finding at all.

Why it matters. A project moving its parts onto its own library (VHRD_* over KiCad's stock libraries, or a vendor's over a generic one) wants every symbol and footprint to end up there; one left behind, or a copy that sneaked in from a stock library mid-migration, is easy to miss by eye in a schematic with hundreds of parts.

Example. Roman's convention for ~/git/kicad-library is VHRD_*: every symbol and footprint library should carry that prefix once a board's libraries are migrated (kilib migrate). kilib check --only VHRD_ catches this on the library's own side; berc fp check --lib --allow 'VHRD_*' and berc fp todo --allow 'VHRD_*' catch it from a project that uses the library, before the symbols are migrated rather than after.

How to check. The nickname (the text before the colon) of a symbol's own Lib:Name and of its Footprint field's Lib:Name, each checked against the allowed patterns: a pattern ending * matches a prefix, any other matches only that exact name; no patterns given is no rule. better_erc: SymbolEntry::symbol_library_disallowed / footprint_library_disallowed (berc fp check --lib, berc fp todo), the setting a repeatable --allow NICKNAME on the command line or [footprint_review] allowed_libraries in the app's config.toml.

Fix. Move the symbol, or its footprint, into one of the allowed libraries (kilib migrate on the library side), or widen the allowed set if the library is meant to stay.

References. None beyond the project's own convention; TOOL-10.