Giter Site home page Giter Site logo

sonar-scala

sonatype-badge bintray-badge-lts bintray-badge-lts-79 bintray-badge-lts-67 gitter-badge

A free and open-source SonarQube plugin for static code analysis of Scala projects.

sonar-scala is an independent SonarQube plugin, driven by and developed with :heart: by the community.

Intended for SonarQube 9.4, SonarQube 8.9 LTS, SonarQube 7.9 LTS, SonarQube 6.7 LTS and Scala 2.11/2.12/2.13.

sonar-scala is developed in Scala. It uses the scalariform library to parse the source code and integrates with Scoverage (code coverage), Scalastyle and Scapegoat (static code analysis). It also provides pull request decoration functionality, which can review pull requests on Github and make comments on new issues directly in the pull request instead of reporting them to SonarQube.

Running analysis from a Windows machine is currently not supported - please use Linux or other Unix-like operating system.

Documentation

See the project website sonar-scala.com for documentation.

Development

To build the project from sources, run the assembly task in sbt shell and the jar assembled with all of the dependencies required by this plugin should be created in the target/scala-2.13 directory.

To debug the plugin, export the following environment variable before running sonar-scanner for your project:

export SONAR_SCANNER_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=8000"

Once you've done that, sonar-scanner should display the following message Listening for transport dt_socket at address: 8000. You can now attach your IDE to the process on port 8000, set breakpoints and debug the code.

Credits

This project is a continuation of the sonar-scala plugin, which was initially developed by Sagacify.

Many other projects have been used as an inspiration, here is a list of the main ones:

Changelog

For a full list of changes and releases, please see Changelog.

License

The project is licensed under the GNU LGPL v3. See the LICENSE file for more details.

Sonar Scala's Projects

sbt-sonar icon sbt-sonar

An sbt plugin which provides an easy way to integrate Scala projects with SonarQube.

sonar-scala icon sonar-scala

A free and open-source SonarQube plugin for static code analysis of Scala projects.

sonar-scala-docker icon sonar-scala-docker

Docker images and docker-compose recipes with sonar-scala plugin for SonarQube providing support for Scala with Scoverage, Scalastyle and Scapegoat.

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.