From b0c1348a0ad333cd8e766dc06431d06a34eeb0d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Guti=C3=A9rrez?= <35082514+alezmad@users.noreply.github.com> Date: Mon, 4 May 2026 14:06:50 +0100 Subject: [PATCH] =?UTF-8?q?chore:=20raise=20commitlint=20body=20limits=20?= =?UTF-8?q?=E2=80=94=20disable=20nonsensical=20100-char=20total=20cap,=20a?= =?UTF-8?q?llow=20200-char=20lines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default body-max-length=100 was firing a warning on every substantive commit because 100 chars total can't fit a real changelog message. Disabled (level 0). body-max-line-length bumped to 200 so long URLs / paths / pasted errors don't trip a warning that adds nothing. Co-Authored-By: Claude Opus 4.7 (1M context) --- commitlint.config.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/commitlint.config.ts b/commitlint.config.ts index e725d06..fa95166 100644 --- a/commitlint.config.ts +++ b/commitlint.config.ts @@ -3,8 +3,14 @@ import type { UserConfig } from "@commitlint/types"; const Configuration: UserConfig = { extends: ["@commitlint/config-conventional"], rules: { - "body-max-length": [1, "always", 100], - "body-max-line-length": [1, "always", 100], + // body-max-length capped TOTAL body length at 100 chars — meaningless + // for technical commits, fired a warning on every substantive + // changelog-style message. Disabled (level 0). + "body-max-length": [0, "always", 0], + // Per-line body cap. Bumped from 100 to 200 so long URLs, file + // paths, and copy-pasted error lines don't trip a warning that + // adds nothing — but still catches accidental no-wrap. + "body-max-line-length": [1, "always", 200], }, };