TFS SonarQube Extension 不向 JS 文件的拉取请求发送评论

TFS SonarQube Extension is not sending comments to pull requests for JS files

我正在使用 Visual Studio Team Foundation Server 2015 和 SonarQube extension

它评论 .cs 个文件的拉取请求,但不评论 JavaScript (jsx) 个文件。当我检查仪表板上的报告时,我可以看到 JS 文件的评论,这意味着扫描器正在正确分析 JS 文件,但我不明白为什么它不向拉取请求发送评论。

我如何设置它来命令 JS 文件?

更新:这是我链接到拉取请求的构建定义:

1) SonarQube Scanner for MSBuild - Begin Analysis (new)
2) Visual Studio Build (solution of our project)
3) npm install
4) npm run build
5) SonarQube Scanner for MSBuild - End Analysis (new)

如您所见,同一文件夹中有 2 个不同的项目。其中一个是 .NET 项目(第 2 步),另一个是 NodeJS 项目(第 3-4 步)。

TFS/VSTS 中的 PR 装饰(即添加评论和更新 PR 的状态)过去仅支持使用 Scanner for MSBuild 构建的项目,并且有很多限制(您遇到的是可能是其中之一)。

因此,在最新版本的 TFS/VSTS 扩展中删除了对 PR 修饰的支持。

我们现在正在努力为 PR 装饰提供适当的支持,这将适用于任何项目(.NET、Java、JS 等)。我们计划首先在 SonarCloud 上推出它(使用 SonarCloud VSTS extension), and in a couple of month on SonarQube (using the SonarQube TFS/VSTS extension)。