chore: raise commitlint body limits — disable nonsensical 100-char total cap, allow 200-char lines
Some checks failed
CI / Lint (push) Has been cancelled
CI / Typecheck (push) Has been cancelled
CI / Broker tests (Postgres) (push) Has been cancelled
CI / Docker build (linux/amd64) (push) Has been cancelled

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) <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-05-04 14:06:50 +01:00
parent 1a14cef1e0
commit b0c1348a0a

View File

@@ -3,8 +3,14 @@ import type { UserConfig } from "@commitlint/types";
const Configuration: UserConfig = { const Configuration: UserConfig = {
extends: ["@commitlint/config-conventional"], extends: ["@commitlint/config-conventional"],
rules: { rules: {
"body-max-length": [1, "always", 100], // body-max-length capped TOTAL body length at 100 chars — meaningless
"body-max-line-length": [1, "always", 100], // 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],
}, },
}; };