【问题标题】:SonarQube with mixed .NET and Angular Projects混合 .NET 和 Angular 项目的 SonarQube
【发布时间】:2022-12-09 16:36:03
【问题描述】:

我是 SonarQube 的新手。我的目标是设置 SonarQube 来扫描具有混合内容的 .NET 解决方案——一些项目使用 C#,一个是用 TS/Angular 编写的。项目结构如下所示:

现在我正在使用 SonarScanner .NET 来分析我的项目。问题是,分析的是 C# 代码,而不是 Angular 代码。

我的 sonar-project.properties 看起来像这样(解决方案实际上在文件夹 ./src/ 中):

sonar.projectKey=it-entwicklung_dotnet_mypoettinger_AYFcAof9yGNGEq-TtfGV
sonar.qualitygate.wait=true
sonar.sourceEncoding=UTF-8

sonar.projectName=mypoettinger
sonar.sources=src/

在扫描程序过程中,我收到以下消息:

/builds/it-entwicklung/dotnet/xxx/src/xxx.App/xxx.App.esproj : warning NU1503: Skipping restore for project '/builds/it-entwicklung/dotnet/xxx/src/xxx.App/xxx.App.esproj'. The project file may be invalid or missing targets required for restore. [/builds/it-entwicklung/dotnet/xxx/src/xxx.sln]

我究竟做错了什么?

【问题讨论】:

  • xxx.App.esproj?
  • 你是什​​么意思?对不起,我不知道你想告诉我什么。

标签: c# .net angular sonarqube sonarqube-scan


【解决方案1】:

没有什么。

你没有做错任何事。 NuGet 恢复不支持 JavaScript/TypeScript 项目,您可以忽略警告,如its documentation 所述。

【讨论】:

    猜你喜欢
    • 2011-09-22
    • 2016-06-26
    • 2019-10-22
    • 2011-08-18
    • 1970-01-01
    • 2019-04-19
    • 2018-06-15
    • 2020-03-16
    • 1970-01-01
    相关资源
    最近更新 更多