From 6b12d0726ca4fdc521e06046741d194bea64e00a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20NEDJAR?= Date: Wed, 25 Mar 2026 09:52:32 +0100 Subject: [PATCH 1/2] tooling: Enforce commitlint scope-enum as error. --- commitlint.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commitlint.config.js b/commitlint.config.js index 5b2ca267..c4be4c00 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -10,7 +10,7 @@ module.exports = { 'subject-full-stop': [0], 'header-max-length': [2, 'always', 78], 'scope-enum': [ - 1, + 2, 'always', [ 'apds9960', From 1c21aab06f68ea5e11772b739e9d029372cb0fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20NEDJAR?= Date: Wed, 25 Mar 2026 09:54:09 +0100 Subject: [PATCH 2/2] docs: Document enforced scope-enum in CONTRIBUTING. --- CONTRIBUTING.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3c522248..9220485a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -68,7 +68,10 @@ Commit messages follow the [Conventional Commits](https://www.conventionalcommit **Types**: `feat`, `fix`, `docs`, `style`, `refactor`, `test`, `ci`, `build`, `chore`, `perf`, `revert`, `tooling` -**Scopes** (optional): driver names (`hts221`, `ism330dl`, `wsen-pads`...) or domains (`ci`, `docs`, `style`, `tests`, `tooling`). The scope is recommended for driver-specific changes but can be omitted for cross-cutting changes. +**Scopes** (optional but enforced): if provided, the scope **must** be one of the allowed values. The scope is recommended for driver-specific changes but can be omitted for cross-cutting changes. + +- Driver scopes: `apds9960`, `bme280`, `bq27441`, `daplink_flash`, `gc9a01`, `hts221`, `im34dt05`, `ism330dl`, `lis2mdl`, `mcp23009e`, `ssd1327`, `steami_config`, `vl53l1x`, `wsen-hids`, `wsen-pads` +- Domain scopes: `ci`, `docs`, `style`, `tests`, `tooling` ### Examples