Skip to content
This repository was archived by the owner on Jan 1, 2018. It is now read-only.

mickaeltr/Sonar-L10n-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sonar L10n plugin

Sonar plugin for L10n properties files analysis

Configuration

Source directories

  • Key: sonar.l10n.sourceDirectories

  • Description: comma-separated list of source directories

  • Default:

     src/main/resources, src/main/java
    

Locales

  • Key: sonar.l10n.locales
  • Description: comma-separated list of locales
  • Default: autodiscovered

Key prefixes excluded

  • Key: sonar.l10n.excludeKeyPrefixes
  • Description: comma-separated list of key prefixes excluded
  • Default: none

Development

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/:

  1. Login with admin/admin
  2. Go to Configuration > Quality profiles
  3. Create a new profile
  4. Make the profile the default
  5. Edit the profile, go to Coding rules
  6. Select the L10n plugin (any / any) and activate the rules

In the target project, run:

mvn sonar:sonar

About

Sonar plugin for L10n properties files analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages