Skip to content

Files

Latest commit

 

History

History
24 lines (14 loc) · 628 Bytes

UniqueProperties.md

File metadata and controls

24 lines (14 loc) · 628 Bytes

Pattern: Duplicate key in properties file

Issue: -

Description

Checks properties files for duplicated keys.

Rationale: Multiple property keys usually appear after merge or rebase of several branches. While there are no errors in runtime, there can be a confusion due to having different values for the duplicated properties.

Examples

To configure the check:

<module name="UniqueProperties">
    <property name="fileExtensions" value="properties" />
</module>

Further Reading