Inspectopedia
 
2024.3

Incorrect 'MessageFormat' pattern

Warning
New
Last modified: 03 December 2024

Reports incorrect message format patterns or incorrect indexes of placeholders

The following errors are reported:

  • Unparsed or negative index

  • Unclosed brace

  • Unpaired quote. In this case, a part of a pattern may not be used

  • Probably incorrect number of quotes

  • Incorrect lower bound of nested choice patterns

  • Incorrect indexes of placeholders. In this case, a placeholder may not be substituted or an argument may not be used

Examples:

Use the Custom MessageFormat methods table to specify method calls that should have their arguments checked as MessageFormat patterns. The table contains pairs of fully qualified class name and method name regular expression to match the containing class and name of the method calls. Class names also match subclasses.

New in 2023.2