Giter Site home page Giter Site logo

sonar-scala's People

Contributors

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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sonar-scala's Issues

does this work with gitlab plugin?

I downloaded sonar-scala-plugin-0.0.3.jar into sonarqube-6.6/extensions/plugins and try to run it from gitlab using the gitlab sonar plugin with:

mvn --batch-mode verify sonar:sonar -Dsonar.projectKey=myproject -Dsonar.host.url=$SONAR_URL

But I'm not seeing my scala project in sonar. Is there a step I'm missing? Here's the logs from sonar:

[INFO] Project key: myproject
[INFO] -------------  Scan compiler-templates
[INFO] Load server rules
[INFO] Load server rules (done) | time=19ms
[INFO] Base dir: /home/memqa/builds/d6cac072/0/dev/myproject
[INFO] Working dir: /home/projects/builds/d6cac072/0/dev/myproject/target/sonar
[INFO] Source paths: pom.xml
[INFO] Source encoding: UTF-8, default locale: en_US
[INFO] Index files
[INFO] 1 file indexed
[INFO] Quality profile for xml: Sonar way
[INFO] Sensor SonarJavaXmlFileSensor [java]
[INFO] 1 source files to be analyzed
[INFO] Sensor SonarJavaXmlFileSensor [java] (done) | time=333ms
[INFO] 1/1 source files have been analyzed
[INFO] Sensor XML Sensor [xml]
[INFO] Sensor XML Sensor [xml] (done) | time=75ms
[INFO] Sensor Analyzer for "php.ini" files [php]
[INFO] Sensor Analyzer for "php.ini" files [php] (done) | time=2ms
[INFO] Performing issue tracking
[INFO] 3/3 components tracked
[INFO] ANALYSIS SUCCESSFUL
[INFO] Executing post-job GitLab Commit Issue Publisher
[INFO] Report status=success, desc=SonarQube reported no issues
[INFO] Task total time: 2.420 s

it only sees a source path of pom.xml...?

Ability to use in-project scalastyle config as quality profile

It looks like the rules are always pulled from the default ScalaStyle config. It would be nice for the plugin to instead pull the config out of the project, for consistency between the CI and e.g. IDEs.

(yes, I realize that this project is a de-facto fork, but it's the one where everything appears to be working)

Code duplication measure doesn't work

Hello,

this is more question than issue as I am new to sonar with scala. While I was using java all just magically worked out of the box.
Code duplication measure doesn't work or it displays constantly 0.
I think that root cause is here:

INFO: Sensor CPD Block Indexer
INFO: DefaultCpdBlockIndexer is used for scala
INFO: Sensor CPD Block Indexer (done) | time=1ms
INFO: Calculating CPD for 0 files

Am I missing some configuration option here?
When using PMD CPD reports gets generated fine I just don't know if that gets uploaded to sonar.

Lines of code for scala projects?

Is it possible to get this as one of the metrics the analysis performs? It seems like sonar doesn't support this since scala isn't one of the languages it directly integrates with.

Warnings in analysis log

...
WARN: Coverage measure for metric 'lines_to_cover' should not be saved directly by a Sensor. Plugin should be updated to use SensorContext::newCoverage instead.
WARN: Coverage measure for metric 'uncovered_lines' should not be saved directly by a Sensor. Plugin should be updated to use SensorContext::newCoverage instead.
WARN: Coverage measure for metric 'coverage_line_hits_data' should not be saved directly by a Sensor. Plugin should be updated to use SensorContext::newCoverage instead.
...

Sonar server version 6.7.1
Sonar scanner version 3.0.3.778
Sonar scala plugin version 0.0.3

Sample maven config doesn't output default artifact

I believe that, at least with the multi module maven example, there is something wrong. When I execute mvn clean install I end up with scoverage-module1-1.0.0.jar and not module1-1.0.0.jar so I guess this is either the instrumented version or the file suddenly has a wrong name.

Is this expected behavior? How do I get my production ready jars again?

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.