运行 sonarqube 扫描仪时出错

2

本文介绍了运行 sonarqube 扫描仪时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

从 TeamCity 运行构建时,SonarQube 中出现以下错误

Getting the following error in SonarQube while running the build from TeamCity

原因:开始指针 [line=239, lineOffset=1] 应该在结束指针 [line=239, lineOffset=1] 之前

Caused by: Start pointer [line=239, lineOffset=1] should be before end pointer [line=239, lineOffset=1]

更新了 C# 插件,安装了 VB.net 插件并添加了 Scanner for MSBUILD 最新版本 sonar-scanner-msbuild-2.2.0.24.

Updated the C# plugin, installed VB.net plugin and added the Scanner for MSBUILD latest version sonar-scanner-msbuild-2.2.0.24.

仍然出现错误.

推荐答案

很遗憾,我们在最新版本中引入了一个错误.这是相应的票证:https://jira.sonarsource.com/browse/SONARCS-629.我们正在努力修复.

Unfortunately we introduced a bug in the latest release. Here's the corresponding ticket: https://jira.sonarsource.com/browse/SONARCS-629. We're working on the fix.

暂时作为一种解决方法,您可以禁用导致问题的规则.您能否确认在您的情况下是 S105(不应使用制表符)?

As a workaround for the time being you can disable the rule that causes the issue. Can you confirm that in your case it is S105 (tab characters should not be used)?

这篇关于运行 sonarqube 扫描仪时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

C# 中的多播委托奇怪行为?
Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)...
2023-11-11 C#/.NET开发问题
6

如何将代表存储在列表中
How to store delegates in a List(如何将代表存储在列表中)...
2023-11-11 C#/.NET开发问题
6

代表如何工作(在后台)?
How delegates work (in the background)?(代表如何工作(在后台)?)...
2023-11-11 C#/.NET开发问题
5

Delegate.CreateDelegate() 和泛型:错误绑定到目标方法
Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)...
2023-11-11 C#/.NET开发问题
14

函数委托与函数
Func Delegate vs Function(函数委托与函数)...
2023-11-11 C#/.NET开发问题
6

具有未知类型的 CreateDelegate
CreateDelegate with unknown types(具有未知类型的 CreateDelegate)...
2023-11-11 C#/.NET开发问题
5