Simple messages have the shape Lang -> String
This rule is in a dirty/WIP state with lots of extraneous cruft, but declarationEnterVisitor
is the significant part, and it serves two purposes:
- reports non-simple messages (despite the name of the rule / module) for use with
Rule.withDataExtractor
- reports errors for messages whose key appears in
out.json
(these are messages that were found to have been edited unintentionally, the JSON is a map from message key / function name to original source that we should restore)