Open mristin opened 4 years ago
Hi.
That's a cool approach, although I'll probably avoid implementing it here—I personally want seven-rule-msg
to be relatively lax in this respect. I stand corrected about "[…] checking for imperative tense is non-trivial and error-prone", though. I'll edit that when I get a chance.
Thanks for sharing!
I think it would be good if seven-rule-msg
simply checked for the imperative mood, but does not fail if it is not detected. (Maybe if you're feeling confident you can pass a flag to fail on not-imperative?)
Hi @shreyasminocha , I made a similar implementation: https://github.com/mristin/opinionated-commit-message
You can approximate the imperative mood with a set of most frequent English words. It works pretty well in practice.