[Java] Check exception message for conventions

Hi

I would love to see a rule introduced that allows us to check exception messages for some conventions. Ideally the convention is defined by a regex allowing us do define that:

  • Exception message text starts Uppercase

  • Exception message does not end with a dot.

    throw new IllegalArgmuentException(“my little sentence.”) // noncompliant
    throw new IllegalArgumentException(“This did not work”) // compliant

Same would be cool for log messages.

Kind regards,
Michael