File tree 3 files changed +16
-2
lines changed
3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -187,13 +187,13 @@ See the [open issues](https://github.com/lumapps/commit-msg-validator/issues) fo
187
187
- [x] list all the commit, and run validation on each
188
188
- [x] enforce the overall commit message structure
189
189
- [x] enforce the overall commit header structure
190
- - [x] enforce the overall commit header lenght
190
+ - [x] enforce the overall commit header length
191
191
- [x] enforce the commit type
192
192
- [x] enforce the commit scope
193
193
- [x] enforce the commit subject
194
194
- [x] enforce the commit body length
195
195
- [x] enforce the JIRA reference
196
- - [ ] enforce the BROKEN part
196
+ - [x ] enforce the BROKEN part length
197
197
- [ ] avoid trailing space
198
198
- [ ] allow automated revert commit
199
199
- [ ] allow fixup! and squash! commit with an option
Original file line number Diff line number Diff line change @@ -486,6 +486,19 @@ LUM-2345'
486
486
[[ " $status " -eq $ERROR_BODY_LENGTH ]]
487
487
}
488
488
489
+ @test " overall validation invalid footer length" {
490
+ MESSAGE=' feat(scope1): subject
491
+
492
+ plop
493
+
494
+ LUM-2345
495
+ BROKEN:
496
+ - 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901'
497
+
498
+ run validate " $MESSAGE "
499
+ [[ " $status " -eq $ERROR_BODY_LENGTH ]]
500
+ }
501
+
489
502
@test " overall validation missing jira" {
490
503
MESSAGE=' feat(scope1): subject
491
504
Original file line number Diff line number Diff line change @@ -224,6 +224,7 @@ validate() {
224
224
validate_subject " $SUBJECT "
225
225
226
226
validate_body_length " $BODY "
227
+ validate_body_length " $FOOTER "
227
228
228
229
validate_jira " $TYPE " " $JIRA "
229
230
}
You can’t perform that action at this time.
0 commit comments