Name | Scala Plugin |
Latest version | Trunk |
Requires Sonar version | 2.9 or higher |
License | GNU LGPL v3 |
Developers | |
Issue Tracker | http://jira.codehaus.org/browse/SONARPLUGINS/component/14772 |
Sources |
This plugin enables the analysis of Scala projects.
The following metrics are supported:
The version 0.1 of this plugin will cover calculation of base metrics.
The next versions will cover the following features:
If your project is built with maven, you should add:
<sourceDirectory>src/main/scala</sourceDirectory> |
to the build section in your pom and:
<properties> <sonar.language>scala</sonar.language> </properties> |
If your project does not use maven as a build engine, you should create a small pom.xml file at the root of your project containing the following content:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>my.group.id</groupId>
<artifactId>arifactId</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<name>The Name of My Project</name>
<build>
<sourceDirectory>src/main/scala</sourceDirectory>
</build>
<properties>
<sonar.language>scala</sonar.language>
</properties>
</project>
|
To kick-off the analysis, run mvn sonar:sonar.
Everybody with an interest in developing Scala Sonar support is invited to contribute.
Project setup with Eclipse Indigo:
If you start developing, you should respect the guidelines of Sonarsource:
- http://docs.codehaus.org/display/SONAR/Developer+guide
- under "IDE Support": http://docs.codehaus.org/display/SONAR/Build+Sonar