sonarqube

Azure DevOps “Prepare analysis on SonarQube” task fails against our Azure hosted SonarQube server with a Let's Encrypt wildcard cert

♀尐吖头ヾ 提交于 2020-01-25 10:02:06
问题 When running the SonarQube task on the Windows Hosted Agent I get this error right away. [error][SQ] API GET '/api/server/version' failed, error was: {"code":"UNABLE_TO_VERIFY_LEAF_SIGNATURE"} The error is apparently related to what's discussed in this Let's Encrypt signing explanation. Using the info on that page as a guide and in an attempt to fix the problem I've created a predecessor task in the DevOps job to add to the Java keystore on the DevOps Agent box all the certs in the chain up

Treat Warnings as Errors using SonarQube Analysis

你离开我真会死。 提交于 2020-01-25 09:22:26
问题 I have been trying to make my solution fail to build on Visual Studio Team Services when there are warnings. I have enabled the option in the project in VS2017 to treat warnings as errors, so that it won't build. Treat warnings as errors set to All Also, there is a MsBuild argument for the same purpose set to true on VSTS. Treat warnings as errors set to true This works, as when there is a warning it is treated as error (Eg. an unused int is a warning and becomes an error, failing the build).

Install Node.Js in a Sonarqube instance on the docker-compose

时光怂恿深爱的人放手 提交于 2020-01-25 07:05:12
问题 so I'm trying to launch SonarQube on the docker through docker-compose . This is my .yml file: version: "3" services: sonarqube: image: sonarqube ports: - "9000:9000" - "5432:5432" links: - db:db environment: - SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonar - SONARQUBE_JDBC_USERNAME=postgres - SONARQUBE_JDBC_PASSWORD=sonar volumes: - ..../Work/tools/_SonarQube_home/conf:/opt/sonarqube/conf # - sonarqube_data:/opt/sonarqube_new/data - ...../Work/tools/_SonarQube_home/data:/opt/sonarqube

WARN - Class 'XXX/XXX/XXX ' is not accessible through the ClassLoader

余生长醉 提交于 2020-01-25 05:21:05
问题 To begin with, I'm aware of this question. Since I'm neither using maven or jenkins, I can't use the provided solution. When analysing my project with sonar-runner, I get the following warning : Class 'XXX/XXX/XXX' is not accessible through the ClassLoader on every class of my project. I also get the following warning from the jacoco coverage plugin : No JaCoCo analysis of project coverage can be done since there is no class files. My sonar-runner properties are defined as follows : sonar

Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.1:sonar (default-cli)

佐手、 提交于 2020-01-25 03:42:27
问题 I installed Sonar PMD plugin and after which i am getting the following error: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.1:sonar (default-cli) on project bpm-parent: Execution default goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.0.1:sonar failed: An API incompatibility was encountered while executing org.sonarscanner.maven:sonar-maven-plugin:3.0.1:sonar: java.lang.NoSuchMethodError: org.sonar.plugins.java.api.JavaResourceLocator.classpath()Ljava

sonarqube transfer module to another project

ε祈祈猫儿з 提交于 2020-01-24 21:09:06
问题 I have the following situation: project A - sub module A - sub module B I want to move the sub module B to another project: project B - sub module B But now sonarQube comes up with the following error: Module "submoduleB" is already part of project "projectA" I could rename key in project A so that it can be used again in project B but then I probably lose the history. Thus, how can I transfer the module's history to another project? 回答1: You can't transfer the history. You could recreate it

Feed sonarqube jacoco widget with csv/html reports (instead of *.exec)

笑着哭i 提交于 2020-01-24 20:28:33
问题 I got a root maven project, under which there are many independent modules (e.g. module_A, module_B, etc.). One of these module is my integration-tests module, and it uses all the above external modules. In order to have code coverage for all modules used by integration-tests, I use a workaround based on maven-ant (see this blog post). Problem is: The above generates csv/html report, yet sonarqube jacoco widget parses only jacoco*.exec files - which results in 0% code coverage. Question is:

Javascript equivalent of @SuppressWarnings?

馋奶兔 提交于 2020-01-24 04:46:11
问题 I am currently running Sonar for the static analysis of my code. When I was analyzing java files and wanted to suppress a certain warning, I used the @SuppressWarnings(nameOfTheWarningOnSonar) annotation. I wanted to know if there was a simple equivalent in Javascript to suppress specific warnings on Sonar. 回答1: Well, the easiest way is for sure : Correct what Sonar is saying :) but let's assume that it's false positive. Here are the list of possible method to fix this issue : Since November

Javascript equivalent of @SuppressWarnings?

房东的猫 提交于 2020-01-24 04:46:08
问题 I am currently running Sonar for the static analysis of my code. When I was analyzing java files and wanted to suppress a certain warning, I used the @SuppressWarnings(nameOfTheWarningOnSonar) annotation. I wanted to know if there was a simple equivalent in Javascript to suppress specific warnings on Sonar. 回答1: Well, the easiest way is for sure : Correct what Sonar is saying :) but let's assume that it's false positive. Here are the list of possible method to fix this issue : Since November

Sonar runner (ubuntu) execution failed: com.mysql.jdbc.Driver

主宰稳场 提交于 2020-01-23 16:58:47
问题 I've recently installed SONAR on a Vagrant box running UBUNTU. Sonar service run fine, but when I try to run the sonar-runner I get an error related to jdbc connector. I configured sonar to run with mysql database by changing the file "sonar-runner.properties": sonar.jdbc.url=jdbc:mysql://127.0.0.1:3306/sonar?seUnicode=true&characterEncoding=utf8 sonar.jdbc.username=sonar sonar.jdbc.password=sonar When trying to start sonar-runner i get the following output: $ sudo sonar-runner start -e