sonarqube

How can I create my own C# custom rules for SonarQube?

故事扮演 提交于 2019-12-19 09:01:26
问题 I've been doing some research on it. What I found is a list of quite nice samples but for other languages here. I also looked at sonar-dotnet. But it doesn't look similar to the other implementations. Finally, and to be honest probably my last chance, I took a quick look at FxCop Custom Rules and I'm not sure what would be the right way. What I'm trying to do is just a basic c# rule that can be reviewed like this predefined by sonar. I mean, with Noncompliant Code and Compliant Solution . 回答1

No sonar-runner option in jenkins?

允我心安 提交于 2019-12-19 08:49:46
问题 I'm looking to install sonarQube on our jenkins server. The documentation i can find tells me to configure sonar-runner in Jenkins --> manage Jenkins --> Configure system however there is no 'sonar runner' option there. There is a 'sonar' option where i configured my sonar server, and the sonar plugin is installed and up to date. How do i get the sonar-runner configuration to show up? (We want the standalone sonar job not the maven on as this is a project without maven.) 回答1: Ok. So, if I

sonar qube installation on windows server 2012

你。 提交于 2019-12-19 07:34:20
问题 Installing sonarqube on windows server 2012 I have followed the following steps to install sonar on Windows Server 2012 Downloaded sonarqube4.4 and extracted to C:\Sonarqube Downloaded Java JDK 1.7.0_60 and jre 1.7.0_67 as well as jre7 Installed Windows SDK 7 and .NET Framework 4 Navigated to C:\sonar\bin\windows x86-64 and ran StartSonar.bat as an administrator, this ran ok with no output and i had to hot ctrl- Z to break I then ran \windows-x86-64\InstallNTService.bat as an administratot

sonar qube installation on windows server 2012

回眸只為那壹抹淺笑 提交于 2019-12-19 07:33:07
问题 Installing sonarqube on windows server 2012 I have followed the following steps to install sonar on Windows Server 2012 Downloaded sonarqube4.4 and extracted to C:\Sonarqube Downloaded Java JDK 1.7.0_60 and jre 1.7.0_67 as well as jre7 Installed Windows SDK 7 and .NET Framework 4 Navigated to C:\sonar\bin\windows x86-64 and ran StartSonar.bat as an administrator, this ran ok with no output and i had to hot ctrl- Z to break I then ran \windows-x86-64\InstallNTService.bat as an administratot

SonarQube Java version used to verify code

 ̄綄美尐妖づ 提交于 2019-12-19 07:13:15
问题 How can I know against which version of Java SonarQube validates the code? Is it the version of the JVM? What then if my project is based on a different version? 回答1: I do confirm that this property sonar.java.source is used only by the PMD tool. The SonarSource's Java analyser uses a superset grammar and so can analyse source files regardless of the Java version they comply to. 回答2: The default value is 1.5. To set the appropriate version, you need to set sonar.java.source property to tell

SonarQube Java version used to verify code

余生长醉 提交于 2019-12-19 07:10:12
问题 How can I know against which version of Java SonarQube validates the code? Is it the version of the JVM? What then if my project is based on a different version? 回答1: I do confirm that this property sonar.java.source is used only by the PMD tool. The SonarSource's Java analyser uses a superset grammar and so can analyse source files regardless of the Java version they comply to. 回答2: The default value is 1.5. To set the appropriate version, you need to set sonar.java.source property to tell

Why does SonarQube reopen issues marked as False Positive?

早过忘川 提交于 2019-12-19 06:39:30
问题 Our organization is just starting to use SonarQube and we are seeing something that seems strange to us. We have the plugin that allows users to mark an issue as "False Positive" but any issues that we mark as "False Positive" have their status reset to "Open" the next time SonarQube runs. The same thing happens for issues marked as "Won't Fix"- they are reopened on the next SonarQube run. Is there any way to mark an issue as something that you will never fix so that you don't see it again

can't be indexed twice - testSourceDirectory and sourceDirectory are same

有些话、适合烂在心里 提交于 2019-12-19 05:14:45
问题 I have created performance test as a maven submodule to my main module. All the test classes are written under src/ main /java and not src/ test /java I am able to package the project as jar and run it to performance test my project. I wanted to execute mvn test . For mvn test to work I should have <testSourceDirectory> value set. As in this case I have my code in src/main/java I set this to : <testSourceDirectory>src/main/java</testSourceDirectory> Now mvn test works. But the Problem is

Ncss Type Count violation

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-19 05:12:12
问题 I'm not really clear with this violation raised by PMD. Basically I have 2 questions: What should I do to get rid of this violation? What does the following statement mean? The type has an NCSS line count of 944 Parameters minimum: The type NCSS count reporting threshold: Default is 1500. 回答1: PMD Code size rules. NCSS stands for Non-Commented Source Code lines. Methods and/or classes that have high NCSS counts are (at a very high level) too long, and can probably be split up. High numbers of

Import checkstyle-configuration from sonar into eclipse-checkstyle-plugin

[亡魂溺海] 提交于 2019-12-19 03:36:46
问题 I want to export checkstyle rules from sonar and import them into the checkstyle eclipse plugin. Unfortunately sonar exports the checkstyle rules to a csv file. But the checkstyle plugin only accepts import of xml files. Is there any way to do that? 回答1: You can get it in checkstyle xml format by navigating to Configuration Quality Profiles -> select your Profile activate "Permalinks" tab This should give you access to the checkstyle config as xml. In Eclipse you can even configure the