Skip to content

Commit

Permalink
doc(readme): Create readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Augustin Borsu committed Apr 30, 2016
1 parent 3a5597a commit 9af110f
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions README.md
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)

0 comments on commit 9af110f

Please sign in to comment.