Skip to content

Add dash and underscore escape convention in filters (S5.2)

John Beard requested to merge johnbeard/klc:fp_filter_escape into master

I realised that this KLC check isn't actually written down anywhere (unless I missed it?)

But it's checked in the KLC script https://gitlab.com/kicad/libraries/kicad-library-utils/-/blob/master/klc-check/rules_symbol/S5_2.py:

            if ("-" in fp_filter) or ("_" in fp_filter):
                self.warning(
                    "Minuses and underscores in footprint filter '{fp_filter}' should be"
                    " escaped with '?' or '*'.".format(fp_filter=fp_filter)
                )

If this is still a valid check, it should probably be in the KLC.

Merge request reports