From 5cc202290cbb5fe12db2d039915fe765cb547442 Mon Sep 17 00:00:00 2001 From: Chris Kay Date: Wed, 1 Dec 2021 16:05:31 +0000 Subject: [PATCH] style(commitlint): reorder header/body max line length fields This change simply reorders the `body-max-line-length` and `header-max-line-length` fields to be in the order that most people mentally expect. This has no actual function impact. Change-Id: Ice0db951e4049baaf4de9372255407adc4e3bf66 Signed-off-by: Chris Kay --- .commitlintrc.js | 2 +- .cz.json | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.commitlintrc.js b/.commitlintrc.js index f97048188..5ec16b36e 100644 --- a/.commitlintrc.js +++ b/.commitlintrc.js @@ -40,8 +40,8 @@ module.exports = { }, ], rules: { - "body-max-line-length": [1, "always", cz.maxLineWidth], /* Warning */ "header-max-length": [1, "always", cz.maxHeaderWidth], /* Warning */ + "body-max-line-length": [1, "always", cz.maxLineWidth], /* Warning */ "change-id-exists": [1, "always", "Change-Id:"], /* Warning */ "signed-off-by-exists": [1, "always", "Signed-off-by:"], /* Warning */ diff --git a/.cz.json b/.cz.json index 3c28d3c07..005153af3 100644 --- a/.cz.json +++ b/.cz.json @@ -824,6 +824,10 @@ "title": "checkpatch", "scopes": ["checkpatch"] }, + { + "title": "commitlint", + "scopes": ["commitlint"] + }, { "title": "libfdt", "scopes": ["libfdt"]