Skip to content

Commit

Permalink
Merge pull request #21 from INTI-CMNB/reg_include_priority_doc
Browse files Browse the repository at this point in the history
[DOCs] Made clear which regex has more precedence
  • Loading branch information
set-soft authored Nov 24, 2023
2 parents aba8013 + 625d8e7 commit 859cbda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ BoM generation options can be configured (on a per-project basis) by editing the
* `GROUP_FIELDS` : A list of component fields used to group components together.
* `COMPONENT_ALIASES` : A list of space-separated values which allows multiple schematic symbol visualisations to be consolidated.
* `REGEX_INCLUDE` : A list of regular expressions used to explicitly include components. If there are no regex here, all components pass this test. If there are regex here, then a component must match at least one of them to be included in the BoM.
* `REGEX_EXCLUDE` : If a component matches any of these regular expressions, it will *not* be included in the BoM.
* `REGEX_EXCLUDE` : If a component matches any of these regular expressions, it will *not* be included in the BoM. Important: the `REGEX_INCLUDE` section has more precedence.


Example configuration file (.ini format) *default values shown*

Expand Down
1 change: 1 addition & 0 deletions kibom/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ def Write(self, file):
cf.add_section(self.SECTION_REGEXCLUDES)
cf.set(self.SECTION_REGEXCLUDES, '; A series of regular expressions used to exclude parts from the BoM')
cf.set(self.SECTION_REGEXCLUDES, '; If a component matches ANY of these, it will be excluded from the BoM')
cf.set(self.SECTION_REGEXCLUDES, '; Important: the [' + SECTION_REGINCLUDES + '] section has more precedence')
cf.set(self.SECTION_REGEXCLUDES, '; Column names are case-insensitive')
cf.set(self.SECTION_REGEXCLUDES, '; Format is: "[ColumName]\t[Regex]" (separated by a tab)')

Expand Down

0 comments on commit 859cbda

Please sign in to comment.