Code Inspections in Properties files
This topic lists all JetBrains Rider code inspections available in Properties files.
You can toggle specific inspections or change their severity level on the Editor | Inspection Settings | Inspection Severity | Other Languages page of the IDE settings Ctrl+Alt+S.
Inspection | Description | Default Severity |
---|---|---|
Duplicate property | Reports duplicate property keys with different values, duplicate keys, or duplicate property values. Example:
property1=value;
property2=value;
The Options list allows selecting the area in which the inspection should search for duplicates. | |
Properties file or resource bundle is alphabetically unsorted | Reports alphabetically unsorted resource bundles or .properties files. | |
Property key/value delimiter doesn't match code style settings | Reports properties in which key or value delimiters do not match code style settings. | |
Three dot characters instead of the ellipsis | Reports three "dot" characters which are used instead of the ellipsis character. | |
Trailing spaces in property | Reports all properties whose keys or values end with a whitespace. | |
Unused property | Reports all properties that are not referenced from the outside of the .properties file. |