sonarqube-scan

Setting sonar profile together with sonar preview mode on maven command line

你说的曾经没有我的故事 提交于 2019-12-11 02:02:50
问题 I want to use a specific sonar profile with analysis mode preview for generating comments that go into our github pull requests. The default quality profile for the project includes minor and info level rules which will cause hundreds of extra comments (and literally thousands of github notification emails). So it has to be a quality profile specific to this purpose. Running the build like this: mvn sonar:sonar -Dsonar.profile.java=PRComments -Dsonar.analysis.mode=preview Fails with the

Not authorized to execute any sonarqube analysis with sonarqube scanner on Travis CI

纵然是瞬间 提交于 2019-12-11 01:13:45
问题 I recently started using Travis CI and sonarqube in an open source project and have run into a problem with sonarqube-scanner. My Travis CI page can be seen here: https://travis-ci.org/uglyoldbob/decompiler My sonarqube page can be seen here: https://sonarqube.com/overview?id=uglyoldbob_decompiler I'm running sonarqube-scanner on Travis CI it suddenly stopped working with the following error: "ERROR: You're not authorized to execute any SonarQube analysis. Please contact your SonarQube

SonarScanner giving 'MsBuild.exe' is not recognized as an internal or external command on TFS 2018

微笑、不失礼 提交于 2019-12-10 23:36:31
问题 I'm adding SonarQube to existing TFS 2018 builds. I was following the directions for downloading Community Edition 7.4 located here https://docs.sonarqube.org/display/SCAN/Install+the+SonarScanner+for+MSBuild. Going through the steps of the Quick Installation Guide https://docs.sonarqube.org/latest/setup/get-started-2-minutes/ I get to the part where I’m asked to “Execute the Scanner for MSBuild from your computer” using the below commands: SonarScanner.MSBuild.exe begin /k:"{key}" /d:sonar

sonar.coverage.exclusions and sonar.exclusions does not exclude the files from

て烟熏妆下的殇ゞ 提交于 2019-12-10 12:03:56
问题 I already went through : Configure Sonar to exclude files from Maven pom.xml and still SonarLint is unable to execlude those all files. Any help is much appreciated <properties> <java.version>1.8</java.version> <sonar.coverage.exclusions> **/dto/**/*, **/entity/**/*, **/exception/**/*, **/repository/**/*, **/enums/**/*, **/assembler/**/*, **/src/main/resources/sql/**/*, **/controller/**/*, **/utils/**/*, **/security/**/*, **/servlet/**/*, **/MainApplication.java </sonar.coverage.exclusions>

Can I run SonarQube code analysis for .NET Core (C#) on Linux?

。_饼干妹妹 提交于 2019-12-10 10:29:15
问题 I'm trying to execute and report a SonarQube code analysis (without test coverage for now) against a .NET Core project from a Linux build agent. I downloaded sonar-scanner from this page, and trying to run the report with the following command (the server url is set up in the configuration). sonar-scanner -Dsonar.projectKey="MyProject" -Dsonar.projectName="MyProject" -Dsonar.sources=$PWD The execution seems to be successful, I uploaded the full output to this gist. However, if I go to the

SonarQube: How to suppress a warning in Kotlin code

孤者浪人 提交于 2019-12-10 02:59:00
问题 I'm using SQ 7.3-alpha1 with sonar-kotlin-plugin-1.0.1.965.jar. However, I cannot deactivate a special warning inside my Kotlin code for repositories in Spring Data where I need an "_" in a method name. I tried both //NOSONAR and @Suppress("kotlin:S100") and @SuppressWarnings("kotlin:S100") . Any hint is appreciated. 回答1: You're not able to deactivate that issue because none of the mechanisms you're trying to use have been implemented for Kotlin. Instead, you'll have to do this from the UI

SONARQUBE lcov import error - Could not resolve 1 file paths

北城余情 提交于 2019-12-09 12:58:18
问题 I am getting the below error whenever I try to import lcov report in to SONAR 15:00:17.230 WARN: Could not resolve 1 file paths in [/opt/app/workload/jenkins_25172/data/jobs/DEV02/workspace/coverage/lcov.info], first unresolved path: /opt/app/workload/jenkins_25172/data/jobs/DEV02/workspace/common/actions/actionCreators.js SONAR properties: sonar.login=** sonar.password=** sonar.verbose=true sonar.language=js sonar.sources=. sonar.projectBaseDir=/opt/app/workload/jenkins_25172/data/jobs/DEV02

SonarQube Scanner analysis skipped in travis CI

[亡魂溺海] 提交于 2019-12-08 17:20:47
问题 Does anyone knows for which reasons a SonarQube Scanner analysis could be skipped ? $ sonar-scanner -X -Dsonar.host.url=https://sonarqube.com -Dsonar.login=$SONAR_TOKEN 08:59:10.162 INFO: Scanner configuration file: /home/travis/.sonarscanner/sonar-scanner-2.8/conf/sonar-scanner.properties 08:59:10.166 INFO: Project root configuration file: /home/travis/build/armadito/glpi/plugins/armadito/sonar-project.properties 08:59:10.182 INFO: SonarQube Scanner analysis skipped The command "sonar

Sonar scanner issue in jenkins

∥☆過路亽.° 提交于 2019-12-08 14:44:24
I am trying to integrate sonar with Jenkins in my local, when integrating the build is successfully and execution is success, but it is not getting finished success, it show below error and it show out of memory INFO: ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/al-config-server INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report INFO: More about the report processing at http://localhost:9000/api/ce/task?id=AWWunlqCAbj3m24yQM89 INFO: Task total time: 6.254 s INFO: -----------------------------

Project exclude with gradle / sonar / Jacoco

筅森魡賤 提交于 2019-12-08 13:48:37
问题 So we have a build with 90+ sub-projects where it's often the case that the directory doesn't perfectly match the project name. In some cases we have empty project-less parent directories and in others the name just doesn't match the directory structure. For example, the sub-directory for project abc-toaster might be named just toaster . The error is: The base directory of the module ' :commons:thingamajig ' does not exist: /dev/abc/:commons:thingamajig ...except there is no build.gradle in