Audit - Rules - Property FilesDescriptionThis group contains audit rules that look for problems in property files. |
Rules: |
Summary
Properties should only be declared once.
Description
This audit rule checks to ensure that there is never more than one property declaration with the same name in the same file. Declaring multiple properties with the same name is usually a mistake because only the last such property will be visible to the code.
Example applicationName = CoolApp
applicationName = Ice Machine Controller
Summary
Properties should only be declared once.
Description
This audit rule checks to ensure that there is never more than one property declaration with the same value in the same file. Declaring multiple properties with the same value can needlessly increase the amount of effort required to translate the property values into another locale.
Example importBottonLabel = Import...
importMenuLabel = Import...
Summary Property comments should be spelled correctly. Description This audit rule finds property comments that contain misspelled words.
Summary Property names should be composed of valid words. Description This audit rule finds property names that are composed from pieces that do not form words.
Summary Property values should be correctly spelled. Description This audit rule finds property values that contain misspelled words.
Summary
Property names should not be preceded by white space.
Description
This audit rule looks for property names that are preceded by white space. Property names that are preceded by white space often indicate a missing line continuation character on the preceding line.
Example
The property named "operation" below, which was likely intended to be part of the line before it, would be flagged as a violation:
messageText = You should have known better than to have tried this
operation without first changing your preference settings.