[Concept,0/3] codman: Add category system and CSV output

Message ID 20260113222054.1204055-1-sjg@u-boot.org
Headers
Series codman: Add category system and CSV output |

Message

Simon Glass Jan. 13, 2026, 10:20 p.m. UTC
  From: Simon Glass <simon.glass@canonical.com>

This series adds a category system to codman for classifying source files
by functional area (boot, drivers, networking, etc.). Categories and
features are defined in a TOML configuration file (category.cfg).

The category system is used by a new CSV output option, which generates
machine-readable reports suitable for spreadsheet analysis. Other output
formats (terminal, HTML) do not yet use categories.


Simon Glass (3):
  codman: Add category module for file classification
  codman: Set up categories for the U-Boot codebase
  codman: Add CSV output with category support

 tools/codman/category.cfg     | 854 ++++++++++++++++++++++++++++++++++
 tools/codman/category.py      | 147 ++++++
 tools/codman/codman.py        |  19 +-
 tools/codman/codman.rst       |  89 ++++
 tools/codman/output.py        | 209 ++++++++-
 tools/codman/test_category.py | 279 +++++++++++
 tools/codman/test_output.py   | 212 +++++++++
 7 files changed, 1807 insertions(+), 2 deletions(-)
 create mode 100644 tools/codman/category.cfg
 create mode 100644 tools/codman/category.py
 create mode 100644 tools/codman/test_category.py
 create mode 100644 tools/codman/test_output.py