Giter Club home page Giter Club logo

sonar-scala's Introduction

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.

The rules in scalastyle are almost all deactivated. They must be activated and either make scala rules inherit scalastyle rules or change the project's rules.

For more information about either scalastyle rules or scoverage results please consult their upstream documentation first:

Build from source

mvn package

Test

mvn test
sonar-runner -D sonar.projectKey=Sagacify:sonar-scala

Contributing

Contributions wre accepted in the form of a pull request or a signed patch. Please follow the semantic changelog to format your commits cfr. All changes are submitted to automated tests that must pass for the pull-request to be merged.

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. 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 library to parse the source code in a version independent way.

TODO (by priority)

  • Add property to sepcify scala version (currently defaults to 2.11.8)
  • Add Complexity metric on file (use the one in scalastyle)
  • remove dependency on commons-io (Currently only needed by BruteForceSequenceMatcher)
  • Uncomment ScoverageSensorSpec
  • Integrate other java compatible code quality tools
  • Optimize sensors i.e. (scalastyle and base both read and parse source files.) ...

Credits

Many existing projects have been used as inspiration. Here is a list of the main ones.

1and1/sonar-scala

SonarSource/sonar-java

SonarSource/sonar-examples

NCR-CoDE/sonar-scalastyle

RadoBuransky/sonar-scoverage-plugin

Integration

For ease of use, Sonar Scala directly integrates the latest code from the Sonar Scalastyle Plugin and Sonar Scoverage Plugin. This is possible as all three projects are released under the LGPL3 license. Nevertheless, all merged files are to keep their original copyright, classpath, and commit history. Any further change upstream should be incorporated using cherry-picks or merges.

sonar-scala's People

Contributors

radoburansky avatar michaelzinsmaier avatar hantuzun avatar hcoles avatar timsoethout avatar jaceklaskowski avatar jamiely avatar jastice avatar gacko avatar sksamuel avatar

Watchers

James Cloos avatar Dejan Stojadinović avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.