Questions tagged [sonarscanner]

Use this tag for questions about the SonarQube Scanner, the recommended default launcher to analyze a project with SonarQube.

195 questions
0
votes
1 answer

How can I set the sonar-project.properties version dynamically to my latest git tag?

When launching SonarQube scanner from my terminal on my app, I would like the version in the sonar-project.properties to be linked to the latest git tag of my project, instead of setting it manually. For example, if my latest tag is '1.2.0',…
Orlyyn
  • 2,296
  • 2
  • 20
  • 32
0
votes
1 answer

sonar-scanner with java project

I have java project (non -gradle ) and want to test sonarQube. So, I install sonar-scanner for mac (https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/) How do I use it to scan my Java project? my project structure…
user2570135
  • 2,669
  • 6
  • 50
  • 80
0
votes
1 answer

Sonar-scanner all files

I am using sonarqube to analyze the code of my project in PHP, everything is set up and partially working, the problem is as follows, I do a check with the Sonar scanner on my pull-requests and merge with the branch master, the analysis it is being…
0
votes
0 answers

Sonarqube CSS analysis is failing after detecting the nodejs version

I have a Jenkins job which is analyzing the java, css, heml and js code with the help of sonarscanner. I am successfully able to analyze the java code but when it comes to UI code the Soanrqube is failing with the below…
Bhavik Joshi
  • 2,557
  • 6
  • 24
  • 48
0
votes
1 answer

Why the SonarQube 8.3 does not check C# code?

I am new to SonarQube and its configuration. My post is similar to this, but it is an old one and as I understand several things inside the solution has changed. English is not my native language, please be patient. I got an SonarQube 8.3 up and…
0
votes
1 answer

Sonarqube - java.lang.OutOfMemoryError: GC overhead limit exceeded

SonarQube Environment:- SonarQube Version - 6.7.7 LTS sonar-cxx-plugin version -1.2.2.1653.jar sonar-scanner version -3.0.3.778 Execution through Jenkins SonarQube Scanner section. Jenkins SonarQube Analysis properties consists of below…
user4948798
  • 1,924
  • 4
  • 43
  • 89
0
votes
1 answer

Is there any possible way to add the custom created jar plugin to SonarQube in UI?

I have created a custom rules java plugin jar and able to add this in extensions/plugins folder and restarted the server. is there any possible way I can do it in UI directly?
priya
  • 391
  • 1
  • 5
  • 24
0
votes
1 answer

Sonarqube Static Code Analysis for Clojure Codes

I am Using Sonarqube Version 7.5.0.20543,Sonar Scanner version sonar-scanner-4.2.0.1873 and Sonar-Clojure Plugin (https://github.com/fsantiag/sonar-clojure) I am trying to Analyse Clojure Codes using Sonarqube. I have added the above Clojure Plugin…
0
votes
1 answer

Dependency Checker with TeamCity and SonarQube for .Net Framework and .Net Core

I'm having an issue sending the Dependency Checker output from the build agent to the SonarQube server. I'm not sure if it's the commands I use with Dependency Checker or the SonarQube setup on the server / client side. I get scan outputs reported…
0
votes
1 answer

Integrating SonarQube with DevOps

I have a self-hosted Windows agent that also has SonarQube Server installed on it. When I add 'Prepare analysis on SonarQube' to a pipeline, it succeeds. When I add 'Run Code Analysis' to that same pipeline, it fails with the error: ERROR: Not…
Jeremy Miller
  • 45
  • 1
  • 1
  • 3
0
votes
1 answer

Sonar-scanner gives an error called "Please provide compiled classes of your project with sonar.java.binaries property"

I'm getting an error called "Please provide compiled classes of your project with sonar.java.binaries property" when executing the sonar-scanner command. I have referred most of the currently available solutions within Stack overflow, git hub etc.…
0
votes
0 answers

how to add certificate to Java trust store if keytool is not provided

There's a tool sonar-scanner written in Java. It has a JRE shipped with it. Currently I met an issue when using this tool, the solution leads to: I need to add certificate to Java trust store with keytool. But there's no keytool in the shipped…
mCY
  • 2,731
  • 7
  • 25
  • 43
0
votes
1 answer

MY SonarQube C++ scan is successful but results only flag Duplications and none other where flagged

MY SonarQube C++ scan is successful but results only flag Duplications and none other where flagged, which seems their is some thing going wrong with the scan. I have looked at jenkins output and Background tasks none of them have any errors. Have…
rohit
  • 1,329
  • 2
  • 8
  • 10
0
votes
1 answer

Why I am not getting the Coverage with SonarQube?

I am running a Jenkin's job to run the test cases with Mocha and to run sonar-scanner on a project with AngularJS and Node. In SonarQube, I am not getting the coverage result but I am getting the other results. And I have included lcov.info file…
0
votes
1 answer

Integrating SonarQube within AWS CodePipeline: Connection Refused

tl;dr CodePipeline crashes on the mvn sonar:sonar line of my buildspec.yml file with the following log (I formatted it a bit for better readability): [ERROR] SonarQube server [http://localhost:9000] can not be reached ... [ERROR] Failed to execute…