Tag: sonarqube

在sonarqube的C#项目

当我运行sonar-runner进行分析时,我的简单C#项目分析终止于SonarLint.Runner.exe上的错误被拒绝: ERROR: Error during SonarQube Scanner execution ERROR: java.io.IOException: Cannot run program “/opt/sonarqube-5.4/projects/ArturiCSharpSort/.sonar/SonarLint.Runner/SonarLint.Runner.exe”: error=13, Permission denied ERROR: Caused by: Cannot run program “/opt/sonarqube-5.4/projects/ArturiCSharpSort/.sonar/SonarLint.Runner/SonarLint.Runner.exe”: error=13, Permission denied ERROR: Caused by: error=13, Permission denied 有效 -rw-r–r– 1 root root 19456 Apr 5 11:14 .sonar/Lint.Runner/SonarLint.Runner.exe 以下是我的sonar-project.properties: # Root project information sonar.projectKey=ArturiCSharpSort sonar.projectName=ArturiCSharpSort sonar.projectVersion=1.0 # Some properties that will […]

SonarQube MSBuild无法排除文件

我正在使用msian在debian上运行分析,使用以下命令: mono /msbuild/SonarQube.Scanner.MSBuild.exe begin /d:sonar.login= /d:sonar.host.url=https:// /d:sonar.exclusions=test/**/* /k: 但是在end命令中: INFO: Index files INFO: Excluded sources: INFO: test/**/* INFO: 17 files indexed INFO: 0 files ignored because of inclusion/exclusion patterns INFO: Quality profile for cs: Sonar way INFO: Excluded sources for coverage: INFO: test/** 并且我的服务器的UI分析包括来自test/文件夹的文件。 为什么它无法忽略特定文件? 使用SonarQube 6.7和sonar-scanner:3.3

为什么SonarQube会重新打开标记为“无法修复”的问题?

在我们的组织中,我们使用SonarQube 5.6和C#插件5.3.1,我们标记为Will Not Fix的每个问题都会在下次分析运行时重新打开。 有时,当分析再次运行时,问题会被标记为“无法修复”(如之前手动标记)。 我们被困在一个圆圈里。 有任何想法吗?

如何在Sonar中的路径中排除带空格的文件?

我试图从Sonars静态代码和unit testing覆盖率分析中排除一些自动生成的代码(服务引用)。 该项目是C#.Net和Sonar在Windows服务器上通过Jenkins运行。 在我的sonar-project.properties文件中,我可以使用sonar.exclusions属性排除各种其他文件和目录,但这不适用于路径中有空格的文件。 sonar.exclusions=**/Global.asax.cs, **/MyProject/Service References/* 鉴于上面的示例,解决方案中的所有项目都排除了Global.asax.cs文件,但服务引用却没有。 我试过用单引号和双引号括起路径。 我曾尝试使用反斜杠来逃避空间。 我已经尝试将路径作为** / MyProject / Service * / *来利用通配符(可能有风险),但这也不起作用。 有人有解决方案吗?

SonarQube 5.2重复键错误

我一直在试用SonarQube 5.2,但我收到的错误如下: org.apache.ibatis.exceptions.PersistenceException: ### Error updating database. Cause:com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert duplicate key row in object ‘dbo.projects’ with unique index ‘projects_uuid’. The duplicate key value is (AVDTnvuxTcMzGBo2P2Fw). ### The error may involve org.sonar.db.component.ComponentMapper.insert-Inline ### The error occurred while setting parameters ### Cause: com.microsoft.sqlserver.jdbc.SQLServerException: Cannot insert duplicate key row in object ‘dbo.projects’ with unique index ‘projects_uuid’. The […]

Sonarqube v.4 TFS任务“发布分析结果”抛出错误“无法获取指标”

在TFS上,我无法运行“发布分析结果”以在TFS网页上发布质量门。 其他任务“准备SonarQube上的分析”和“运行代码分析”成功运行。 错误消息是: [错误] [SQ]无法获取指标 [错误] [SQ]无法获取ID’FWK9NiOFibiMfA2L0BHo’的任务 尽管有错误消息,当我访问url http:// localhost:9000 / api / ce / task?id = FWK9NiOFibiMfA2L0BHo时,我得到一个带有任务信息的json响应。