Sonar plugin for L10n properties files analysis
-
Key: sonar.l10n.sourceDirectories
-
Description: comma-separated list of source directories
-
Default:
src/main/resources, src/main/java
- Key: sonar.l10n.locales
- Description: comma-separated list of locales
- Default: autodiscovered
- Key: sonar.l10n.excludeKeyPrefixes
- Description: comma-separated list of key prefixes excluded
- Default: none
Build and run a Sonar instance with embedded database:
mvn clean install org.codehaus.sonar:sonar-dev-maven-plugin::start-war
Go to the Sonar instance at http://localhost:9000/:
- Login with admin/admin
- Go to Configuration > Quality profiles
- Create a new profile
- Make the profile the default
- Edit the profile, go to Coding rules
- Select the L10n plugin (any / any) and activate the rules
In the target project, run:
mvn sonar:sonar