sonarqube

VSSonarExtention - why connect to the server?

江枫思渺然 提交于 2019-12-11 10:45:59
问题 Just installed and started using VSSonarExtension, but already have a couple of questions that I am unable to answer myself: Why does the extension need to connect to the server if it scans local code with local tools, such as FxCop and StyleCop? After looking through roughly 15 files, I get an error saying that I need a license to scan more than 15 files in one session - isn't the extension open source? I want to make sure that the rules specified on the server match the rules locally, so

sonar fxcop results not displayed

泪湿孤枕 提交于 2019-12-11 10:41:10
问题 I'm trying to use Sonar on some ASP.Net applications. I have installed Sonar and configured C# environment, and I get this working...except for FXcop (Code Analysis). I followed the official documentation : sonar-runner.bat is ok FXCop path is well configured Sonnar-runner launches FXcop (12.0) correctly FXCop builds the "fxcop-report.xml" in the .sonar directory of the project This file contains some "issues" that I should see in Sonarqube FXCop exit with 1024 code, wich seems ok for sonar

Reducing the cyclomatic complexity, multiple if statements

a 夏天 提交于 2019-12-11 10:33:38
问题 I have the following code: private Facility updateFacility(Facility newFacility, Facility oldFacility) { if (newFacility.getCity() != null) oldFacility.setCity(newFacility.getCity()); if (newFacility.getContactEmail() != null) oldFacility.setContactEmail(newFacility.getContactEmail()); if (newFacility.getContactFax() != null) oldFacility.setContactFax(newFacility.getContactFax()); if (newFacility.getContactName() != null) oldFacility.setContactName(newFacility.getContactName()); // ...... }

SonarQube: File is not under the project directory

Deadly 提交于 2019-12-11 10:27:41
问题 I have a lot of warnings when I run the MSBuild.SonarQube.Runner. They are in the format: EXEC : warning : File is not under the project directory and cannot currently be analysed by SonarQube. File: [file], project [project] I found the post about this problem. However the solution does not apply to my problem. There is no occurrence of Test anywhere in my path. I have been using SonarQube 5.1.2 and Sonar-MsBuild-Runner 1.0.1. In the hope so see an improvement, I tried Sonar-MsBuild-Runner 1

Build failure due to Sonar plugin

自古美人都是妖i 提交于 2019-12-11 10:25:17
问题 My build keeps failing on Jenkins because of this error: ERROR: Error during Sonar runner execution org.sonar.runner.impl.RunnerException: Unable to execute Sonar at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91) at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75) at java.security.AccessController.doPrivileged(Native Method) at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69) at org.sonar.runner.impl.BatchLauncher.execute

VS2013 CodeCoverage.exe runsettings file never parses

痴心易碎 提交于 2019-12-11 09:53:58
问题 Environment: Visual Studio 2013 Premium, Win7Ultimate, CodeCoverage.exe Goal: Code Coverage Report that excludes test project code to later be converted to a .coveragexml for reporting to SonarQube 5.1. Annoyance I wouldn't even know of this parse error without adding the /verbose switch to the command. My only indication of a failure was the .coverage file was no longer being generated when I added the /config switch. File Works in VS2013 IDE: MyProject.runsettings file provides the expected

Code coverage differences in sonarqube .Net

安稳与你 提交于 2019-12-11 09:53:55
问题 I found a scenario with SonarQube 5.3 where different values are being reported in code coverage from Visual Studio code coverage analysis. Here is a small reproduction, using the MSTest framework. I'm not able to determine if there is something wrong in what we are doing or if one of the applications is wrong. The object being tested [Serializable] public class Document : IEquatable<Document> { public long Id { get; set; } public string Name { get; set; } public long DocumentHandle { get;

Why sonarqube doesn't generate an issue for not closed connection?

余生长醉 提交于 2019-12-11 09:52:35
问题 I'm testing sonar in order to ensure the closing database connections. I'm executing the maven goal "sonar:sonar" from eclipse with the embeded maven version 3.3.9. with sonarqube 6.2 with sonar-java-plugin-4.10.0.10260.jar. With this code package servlet; import java.io.IOException; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import javax.naming.InitialContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import

SonarQube 5.2 + Javascript 2.8 sonar.exclusions not honoured

微笑、不失礼 提交于 2019-12-11 09:52:30
问题 Using SonarQube 5.2 with Javascript plugin 2.8. I can not seem to prevent generated Javascript files (created by com.samaxes.maven:minify-maven-plugin:minify) from being analyzed by SonarQube. I find no way to configure this property in the SonarQube administrative interface. I also try with $PROJECT/sonar-project.properties with only 1 line: sonar.exclusions=**/all-script.js,**/all-script.min.js,**/all-style.css,**/all-style.min.css Having these files being scanned is generating hundreds

Sonar launch error

最后都变了- 提交于 2019-12-11 09:50:17
问题 I am facing the below error when i try to start the sonar by using a mysql. Do i need to modify any details in the sonar.properties file with respect to the elastic configurations ? Has anyone face a similar error before ? 014.12.15 21:38:49 WARN sea[o.e.transport.netty] [sonar-1418659692862] exception caught on transport layer [[id: ,9001]], closing connection java.io.StreamCorruptedException: invalid internal transport message format at org. elasticsearch.transport.netty