build(commitlint): treat wrong scopes as error
The commitlint checker treats scopes that are not listed in the
changelog.yaml file as warnings. This is then usually overlooked, as
commitlint checker passes with warnings in CI and some patches with
wrong scope can be merged. The maintainers doing the release note will
then have to deal with those patches manually.
Signed-off-by: Yann Gautier <yann.gautier@st.com>
Change-Id: Ica5f581ce7b8c1adbe35f5ab3e6870d9a07807fd
diff --git a/.commitlintrc.js b/.commitlintrc.js
index 53e3a63..51493ea 100644
--- a/.commitlintrc.js
+++ b/.commitlintrc.js
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2021-2024, Arm Limited. All rights reserved.
+ * Copyright (c) 2021-2025, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -67,6 +67,6 @@
"type-enum": [2, "always", types], /* Error */
"scope-case": [2, "always", "lower-case"], /* Error */
- "scope-enum": [1, "always", scopes] /* Warning */
+ "scope-enum": [2, "always", scopes] /* Error */
},
};