Repository navigation
docs(config-conventional): document rules that go beyond the spec - #4910
Merged
Merged
Conversation
4 tasks
escapedcat
marked this pull request as ready for review
August 13, 2026 08:54
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| @commitlint/config-conventional/README.md | The documentation now accurately scopes URL exemptions and enumerates the subject-case restrictions, resolving both previous findings. |
Reviews (2): Last reviewed commit: "docs(config-conventional): document rule..." | Re-trigger Greptile
Clarify which rules are stylistic additions on top of the Conventional Commits specification, why they exist, and how to opt out. Refs #4908 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
escapedcat
force-pushed
the
docs/config-conventional-beyond-spec
branch
from
August 13, 2026 09:18
c331159 to
46ad880
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a short "Beyond the specification" section to the
@commitlint/config-conventionalREADME, between "Getting started" and "Rules". It states which rules are stylistic additions on top of the Conventional Commits specification (header-max-length,body-max-line-length,footer-max-line-length,type-enum,type-case,subject-case,subject-full-stop), where they come from (the Angular commit convention commitlint originates from, see #303 / #436), notes that body and footer lines containing URLs are exempt from the line-length rules (#4486, since v20) —header-max-lengthhas no URL exemption — and shows how to override the rules for a spec-only setup.Motivation and Context
Suggestion for #4908, which points out that the body/footer line-length defaults are not part of the Conventional Commits specification. The limits are an intentional design decision dating back to #303 and #436, but the README currently only says "enforcing conventional commits" without mentioning the additional house style. Documenting the difference was one of the outcomes proposed in the issue.
The framing "these rules narrow the specification — they do not conflict with it" is deliberate: every rule only rejects some spec-valid messages, none demands anything spec-invalid.
Usage examples
Not applicable — documentation only. The override snippet added to the README:
How Has This Been Tested?
Every claim in the section was verified against the built workspace CLI, each exemption paired with a control proving the rule fires:
header-max-lengthhas no URL exemption)README formatted with
oxfmtvia lint-staged.Types of changes
Documentation only.
Checklist:
🤖 Generated with Claude Code