Inconsistent resource bundle
Reports problems in the properties files contained in the resource bundle.
Report missing translations
Use this option to report properties contained in the parent properties file that are missing in inherited ones (unless it's a language dialect).
Example:
# messages.properties abc=xxx # messages_fr.properties # Empty fileProperty
abcwill be reported as untranslated.Report inconsistent properties
Use this option to report properties contained in inherited properties file that are missing in the parent one (or in siblings if there is no parent).
Example:
# messages.properties # Empty file # messages_fr.properties abc=xxxProperty
abctranslation is not available here for any language except French, and, thus, will be reported as missing in the (default) properties filemessages.properties.Report properties overridden with the same value
Use this option to report properties copy-pasted into several properties files verbatim.
Example:
# messages.properties abc=xxx # messages_fr.properties abc=xxxProperty
abcwill be reported as unnecessarily inherited in the filemessages_fr.properties.Report properties overridden with different placeholders
Use this option to check for placeholder consistency in overridden properties.
Example:
# messages.properties qwe={0}xxx{1} abc={0}yyy{1} # messages_fr.properties qwe={0}xxx{0}xxx{1} abc={0}yyyProperty
abcwill be reported as a property containing message format placeholders not corresponding tomessages.properties.Report properties overridden with different values endings
Use this option to check for ending consistency in overridden properties.
Example:
# messages.properties abc=xxxzzz # messages_fr.properties abc=xxx;Property
abcwill be reported as ending with special signs (!/?/./:/;) whereas the parent value inmessages.propertiesdoesn't.
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
InconsistentResourceBundle- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
Inspection ID: InconsistentResourceBundle
Inspection options
Here you can find the description of settings available for the Inconsistent resource bundle inspection, and the reference of their default values.
- Report inconsistent properties
Option ID:
REPORT_INCONSISTENT_PROPERTIESDefault value:
Selected- Report properties overridden with the same value
Option ID:
REPORT_DUPLICATED_PROPERTIESDefault value:
Selected- Report missing translations
Option ID:
REPORT_MISSING_TRANSLATIONSDefault value:
Selected- Report properties with inconsistent placeholders
Option ID:
REPORT_INCONSISTENT_PROPERTIES_PLACEHOLDERSDefault value:
Selected- Report properties with inconsistent ends
Option ID:
REPORT_INCONSISTENT_PROPERTIES_ENDSDefault value:
Selected
Suppressing Inspection
You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:
More detailed instructions as well as other ways and options that you have can be found in the product documentation:
Inspection Details | |
|---|---|
By default bundled with: |