Questions tagged [sonarscanner]

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

195 questions
2
votes
1 answer

Sonar Qube for Ubuntu scans .NET project with success but no issues analyzed

I configured the MSBuild for Sonar Scanner and Sonar Scanner itself on Ubuntu, after banging my head on wall many times in many days yielded some fruitful results so that I am able to scan the .NET project on Ubuntu it did not shows any error begin…
2
votes
0 answers

Separate sonar project for a gradle subproject

I have a project with the following structure in gradle (root, childA and childB are modules each with their own build.gradle) root childA childB I have a sonar analysis setup such that it analyzes the whole project into a project root-analysis…
2
votes
1 answer

BUILD BREAKER API query limit (30) reached

I am running a sonarQube analysis inside my gitlab runner, with the following config: Sonarqube version: Version 7.9.1 (build 27448) Gitlab-ci.yml: Sonarqube: image: name: sonarsource/sonar-scanner-cli:latest entrypoint: [""] stage: code…
Nigel
  • 25
  • 5
2
votes
2 answers

Error during SonarQube Scanner execution ERROR: "You must define the following mandatory properties for 'Unknown': sonar.projectKey"

I am trying to execute sonarqube analysis through Jenkins declarative pipeline. When I execute sonarqube analysis using the below command in the jenkinfile, it works. But when I use the below function in jenkinsfile it gives me the error.But I want…
Rai
  • 167
  • 2
  • 9
2
votes
0 answers

Error during SonarQube scanner execution, Unsupported Java version for PMD:

I am unable to execute sonar analysis for PMD. I have installed a plugin for pmd (sonar-pmd-plugin-3.2.1.jar) manually and restarted the sonarqube. triggered jenkins build for the pmd analysis where it throw the error, unsupported java version for…
2
votes
1 answer

SonarQube + Azure DevOps + Pipeline as Code - Is it possible?

The company I work on recently purchased SonarQube Enterprise to improve code quality throughout all repositories. I found out that there is a feature that enables SonarQube to comment automatically on PRs targeting a specific branch, and I…
2
votes
1 answer

Sonarqube SonarScanner ignores Javascript files in a React project

I have a ReactJS Javascript project workspace in Windows 10 OS for which I wanted to use SonarScanner to run code analysis. I have setup and verified that SonarScanner is running correctly. I also set the "sonar.host.url" in…
Shankar
  • 2,625
  • 3
  • 25
  • 49
2
votes
1 answer

How to import external issues only on SonarCloud

I'm importing swiftLint issues to Sonar using this sonar.swift.swiftLint.reportPaths=swiftlint.json. This doesn't stop Sonar from analysing swift files using SonarSwift. Thus, issues from both the tools get uploaded to SonarCloud. I want Sonar to…
2
votes
1 answer

Getting error while running sonar scanner with Spotbugs rules for monolithic project?

Findbugs Plugin have around 449 rules. Applying all those rules into my existing sonarqube quality profile and started sonar scanning which is taking lots of memory to scan the whole project and also it is throwing error after some time. I am using…
2
votes
1 answer

SonarScanner (C#) not honoring in-code StyleCop warning suppression

I am trying to use SonarQube for static code analysis for my organization. All our C# projects already have StyleCop enabled which has helped us a lot in terms of code readability. Now we want to utilize SonarQube for static code analysis. I…
2
votes
1 answer

how to include sonar scanner in a docker image

I have a dotnet image that is used as an agent for the Jenkins pipeline. Now I want to include sonar scanner in the image so that I can run an analysis and see if the coverage is good. If the coverage is not good then the build should fail. How to…
2
votes
1 answer

Launching Sonar Scanner from a gitlab docker runner

I have a CI workflow that integrates a linting job and then a code quality job. My Linting job is a docker runner launching my eslint script from the application code. Then my code quality job is supposed to start a sonar scanner docker instance,…
Jaro
  • 1,587
  • 5
  • 20
  • 39
2
votes
1 answer

How to resolve line of code limit issue in sonarqube?

I am running sonar-scanner msbuild on my vb.net project . Since i didn't provide sonar.language properties during analysis it has analysed the .js files too. And now I am getting the error "Analyses suspended. You reached your 250000 lines of code…
Raq
  • 433
  • 1
  • 7
  • 20
2
votes
1 answer

SonarQube: obtaining git commit hashes via web API

If I've understood correctly, according to the web API documentation of SonarQube it should be possible to get the commit hash through api/issues/search, however, when I do that and compare that hash with a: git log --all | grep "" I get…
GoDieNow
  • 41
  • 5
2
votes
1 answer

sonar-scanner - ERROR: Failed to parse file with espree parser in module mode

While running sonar-scanner on a node project, I get a Failed to parse file error, which looks like this ERROR: Failed to parse file [file:///home/node-app/somedir/index.js] at line 1: Unexpected token './AddCat' (with espree parser in module …
ashutosh singh
  • 76
  • 3
  • 11
1 2
3
12 13