Skip to content

Commit 37e4e88

Browse files
feat: support co-authorship lines in body
1 parent 4556b7c commit 37e4e88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/rules/line-length.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,14 @@ export default {
2929
let failed = false
3030
for (let i = 0; i < parsed.body.length; i++) {
3131
const line = parsed.body[i]
32+
3233
// Skip quoted lines, e.g. for original commit messages of V8 backports.
3334
if (line.startsWith(' ')) { continue }
3435
// Skip lines with URLs.
3536
if (/https?:\/\//.test(line)) { continue }
37+
// Skip co-authorship.
38+
if (line.startsWith('Co-Authored-By')) { continue }
39+
3640
if (line.length > len) {
3741
failed = true
3842
context.report({

0 commit comments

Comments
 (0)