-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Augustin Borsu
committed
Apr 30, 2016
1 parent
3a5597a
commit 9af110f
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,41 @@ | ||
# sonar-scala | ||
Sonarqube plugin for scala analysis | ||
|
||
# Set-up | ||
Intended for sonarqube 5.4 | ||
|
||
Download the latest relase into your sonar extentions/downloads folder. | ||
Restart sonarqube either using the update center or manually. | ||
|
||
# Build from source | ||
```mvn package``` | ||
|
||
# Test | ||
``` | ||
mvn test | ||
sonar-runner -D sonar.projectKey=Sagacify:sonar-scala | ||
``` | ||
|
||
# Info | ||
This plugin is not an evolution from the legacy sonar-scala-plugin of which versions can be found laying around such as [1and1/sonar-scala](https://github.com/1and1/sonar-scala). | ||
The previous plugin used the scala compiler to create its metrics which had the disadvantage of requiring a specific plugin per scala version. | ||
Instead, we are using the [scala-ide/scalariform](https://github.com/scala-ide/scalariform) library to parse the source code in a version independent way. | ||
|
||
# TODO | ||
* Add property to sepcify scala version (currently defaults to 2.11.8) | ||
* Integrate scalastyle | ||
* Integrate coverage metrics | ||
* Integrate scalawarts | ||
... | ||
|
||
# Credits | ||
Many existing projects have been used as inspiration. | ||
Here is a list of the main ones. | ||
|
||
[1and1/sonar-scala](https://github.com/1and1/sonar-scala) | ||
|
||
[SonarSource/sonar-java](https://github.com/SonarSource/sonar-java) | ||
|
||
[SonarSource/sonar-examples](https://github.com/SonarSource/sonar-examples) | ||
|
||
[NCR-CoDE/sonar-scalastyle](https://github.com/NCR-CoDE/sonar-scalastyle) |