Skip to content

Commit 5d1edd8

Browse files
committed
fix: Remove 72 chars limit on body description 🔥
We would like limit max length of each line, not all body part We have to wait to be introduced to commitlint [See this PR](https://github.com/marionebl/commitlint/pull/400)
1 parent 30b8dba commit 5d1edd8

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

‎packages/commitlint-config/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ module.exports = {
2929
'style',
3030
'test'
3131
]
32-
],
33-
'body-max-length': [2, 'always', 72]
32+
]
3433
}
3534
}

‎packages/commitlint-config/index.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import lint from '@commitlint/lint'
22
import cozyConfig from '.'
33

44
const rules = cozyConfig.rules
5-
const TOO_LONG =
6-
'This is an invalid sentence since it has too much character !!!!!!!!!!!!!'
5+
// const TOO_LONG =
6+
// 'This is an invalid sentence since it has too much character !!!!!!!!!!!!!'
77

88
describe('Commitlint Config Cozy', () => {
99
describe('Header', () => {
@@ -56,6 +56,7 @@ describe('Commitlint Config Cozy', () => {
5656
})
5757
})
5858

59+
/*
5960
describe('Body', () => {
6061
it('respect max length', async () => {
6162
const validBody = [`fix: Bar\n\nWith a small body`]
@@ -69,4 +70,5 @@ describe('Commitlint Config Cozy', () => {
6970
}
7071
})
7172
})
73+
*/
7274
})

0 commit comments

Comments
 (0)