Skip to content

Commit 321bed9

Browse files
authored
ci: consider all linting errors about line length as warnings (#618)
1 parent 263a073 commit 321bed9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

commitlint.config.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,21 @@
33
// so authorizing 4+5 = 9 characters more on master for the max header length should work
44
// until we reach PR #99999.
55

6-
let maxHeaderLength = 100;
6+
let maxLineLength = 100;
77

88
const prExtrasChars = 9;
99

1010
const isPushEvent = process.env.GITHUB_EVENT_NAME === 'push';
1111

1212
if (isPushEvent) {
13-
maxHeaderLength += prExtrasChars;
13+
maxLineLength += prExtrasChars;
1414
}
1515

1616
module.exports = {
1717
extends: ['@commitlint/config-conventional'],
18-
rules: { 'header-max-length': [2, 'always', maxHeaderLength] },
18+
rules: {
19+
'header-max-length': [2, 'always', maxLineLength],
20+
'body-max-line-length': [2, 'always', maxLineLength],
21+
'footer-max-line-length': [2, 'always', maxLineLength],
22+
},
1923
};

0 commit comments

Comments
 (0)