We're currently using YACC plugin to validate a developer's commit message against our regex expression. Our developers currently are making multiple commits with bad error messages and then they go through the rebase process to fix the messages individually.
We print an error message every time there is a bad commit message. So for multiple bad commit messages, the error message gets printed multiple times.
In this situation, is there a way to know which specific commit message failed against the regex expression?