sonarqube

Sonar-Gerrit Plugin Not reporting Issues in Gerrit

被刻印的时光 ゝ 提交于 2019-12-11 15:38:57
问题 I am also facing the same issue with Sonar-Gerrit jenkins plugin. Downloaded it from Jenkins plugins site.Using Sonar-Gerrit plugin 2.2.1, and analysing sonar scan against jenkins workspace. For a sample,have changed just one file and provided the project base directory to the path of that file, and ran the sonar analysis in issues mode. Issues are not loaded in Gerrit and jenkins logs say Report has loaded and contains 759 issues Issues to be commented: 0 Issues to be involved in score

“XXX” does not exist. Change its name or declare it so that its usage doesn't result in a “ReferenceError”

感情迁移 提交于 2019-12-11 15:38:33
问题 I have been using sonar in my projects. I get that error ""kendo" does not exist. Change its name or declare it so that its usage doesn't result in a "ReferenceError". I know it's about global variables. I saw that answer but I don't understand how to use 'sonar.javascript.globals'. I searched for documentation and I found this doc. But how to implement? What I'm missing? Anyone to explain how can I define global variables to sonar? Projects are written with ASP.NET, C#, Javascript. 回答1: If

Junit test for Sonarqube repair

六月ゝ 毕业季﹏ 提交于 2019-12-11 15:15:33
问题 I am writing an automatic repair system for some specific sonarqube bugs using INRIA's spoon. I want to write Junit tests for my repair system to check whether the bug has been repaired. I want to do something like this : X = file; Y = repair(X); assert(! hasSonarqubeBug(Y)); Sonarqube analysis is only available for complete projects and not individual files. Sonarlint does analyse individual files but I don't know if there is a way to write a test like this with sonarlint. 回答1: With the Web

Azure Pipepline with task Sonarqube https

天大地大妈咪最大 提交于 2019-12-11 14:59:48
问题 I added a Sonarqube task into my azure build pipeline, in order to login to my sonarqube server I need to run a command, which uses trunst store ssl. my pipeline looks just like this: - task: SonarSource.sonarqube.15B84CA1-B62F-4A2A-A403-89B77A063157.SonarQubePrepare@4 displayName: 'Prepare analysis on SonarQube' inputs: SonarQube: abc-sonarqube scannerMode: CLI configMode: manual cliProjectKey: 'abc' cliProjectName: 'abc' cliSources: src extraProperties: | sonar.host.url=https://sonarqube

Ignore missing documentation if superclass has documentation

筅森魡賤 提交于 2019-12-11 14:06:48
问题 Is there any way to tell SonarQube not to count an overriding method into the public documented api statistics if the overridden method is documented? SonarQube finds many methods lacking annotation due to the case below. I know there is an annotation to ignore certain rules of SonarQube, however we don't want to add code to our project in order to satisfy SonarQube. 回答1: You could use inherit doc. /** * {@inheritDoc} */ @Override 来源: https://stackoverflow.com/questions/34070485/ignore

Sonarqube synchronization error

你说的曾经没有我的故事 提交于 2019-12-11 13:55:22
问题 I have created a custom rule for sonarqube in Java. The rule is created and i can see that in the sonarqube UI. Now the problem is when i try to check that rule from eclipse. I am getting error: :Synchronization issue, has encountered some problem". When I checked log from eclipse, i have this: !ENTRY org.sonar.ide.eclipse.core 4 4 2016-04-18 10:02:36.641 !MESSAGE !STACK 0 java.lang.NullPointerException at org.sonar.ide.eclipse.wsclient.internal.SonarWSClientFacade

Not able to get sonarqube to index files in my multi module gradle project

两盒软妹~` 提交于 2019-12-11 13:45:00
问题 I have a multi-module gradle project created in android studio and want to run an analysis using sonarqube. The project structure is as below root (no source files) Module 1 com.myapp.module1 package1 package2 Module 2 (structure similar to that of Module 1) I added the sonarqube plugin in the build.gradle file in root along with the following sonarqube properties: a) Host URL b) jdbc url c) Username for jdbc d) password for jdbc I use gradlew for the build. When I run gradlew sonarqube from

Jenkins: Running Scanner for MSBuild under Local System or Network Service account is not supported

社会主义新天地 提交于 2019-12-11 13:17:49
问题 I want to integrate SonarQube with a Jenkins project (ASP.NET project). I am trying to build a Jenkins job containing a build step for "SonarScanner for MSBuild " begin/end analysis. But I get the following error: " Running the Scanner for MSBuild under Local System or Network Service account is not supported. Please, use a local or domain user account instead. " I even tried removing the "SonarScanner for MSBuild " begin/end analysis steps and manually executing Windows batch commands (which

SonarQube API result limit

牧云@^-^@ 提交于 2019-12-11 13:13:22
问题 I have a question about the limit restriction of results in the web api. There was a restriction to max. 500 results in prior versions. See this open bug (https://jira.codehaus.org/browse/SONAR-2920) and an old documentation entry ( http://docs.codehaus.org/pages/viewpage.action?pageId=229743280). This part is not included in the current documentation ( http://nemo.sonarqube.org/api_documentation#api/resources) and my tests have shown that the api of version 5.1 as well as 4.5.4 is able to

sonar.profile is deprecated for 4.5.4 Sonarqube

旧街凉风 提交于 2019-12-11 12:57:02
问题 I am using sonarqube 4.5.4,and hence the sonar.profile is deprecated for the sonar version of 4.5.4,Please suggest what alternative tag can be used for the same. Regards, Namratha 回答1: There's no replacement for this property. Instead, make your project-profile associations via the UI. 来源: https://stackoverflow.com/questions/37831982/sonar-profile-is-deprecated-for-4-5-4-sonarqube