From 37e4e88303df1a80ebbfb0a48a5a5c53ed41e0c8 Mon Sep 17 00:00:00 2001 From: Jacob Smith <3012099+JakobJingleheimer@users.noreply.github.com> Date: Tue, 9 Dec 2025 22:20:35 +0100 Subject: [PATCH] feat: support co-authorship lines in body --- lib/rules/line-length.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/rules/line-length.js b/lib/rules/line-length.js index 2d5b60c..92aa665 100644 --- a/lib/rules/line-length.js +++ b/lib/rules/line-length.js @@ -29,10 +29,14 @@ export default { let failed = false for (let i = 0; i < parsed.body.length; i++) { const line = parsed.body[i] + // Skip quoted lines, e.g. for original commit messages of V8 backports. if (line.startsWith(' ')) { continue } // Skip lines with URLs. if (/https?:\/\//.test(line)) { continue } + // Skip co-authorship. + if (line.startsWith('Co-Authored-By')) { continue } + if (line.length > len) { failed = true context.report({