Skip to content

Commit d720dde

Browse files
committed
chore: commitlint 禁用footer最大行长度检查
1 parent 55ccdc0 commit d720dde

File tree

1 file changed

+1
-19
lines changed
  • internal/lint-configs/commitlint-config

1 file changed

+1
-19
lines changed

internal/lint-configs/commitlint-config/index.mjs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -99,25 +99,7 @@ const userConfig = {
9999
* ^^^^^^^^^^^^^^
100100
*/
101101
'footer-leading-blank': [1, 'always'],
102-
'footer-max-line-length': [
103-
2,
104-
'always',
105-
(parsed) => {
106-
if (parsed.type === 'sync') {
107-
return [true];
108-
}
109-
if (!parsed.footer) {
110-
return [true];
111-
}
112-
// footer按行分割,逐行判断
113-
const lines = parsed.footer.split(/\r?\n/);
114-
const over = lines.find((line) => line.length > 108);
115-
if (over) {
116-
return [false, `footer 单行不能超过 108 个字符`];
117-
}
118-
return [true];
119-
},
120-
],
102+
'footer-max-line-length': [0],
121103
/**
122104
* type[scope]: [function] description
123105
* ^^^^^

0 commit comments

Comments
 (0)