SonarQube与混合.NET和Angular 项目

k5hmc34c  于 2022-12-14  发布在  .NET
关注(0)|答案(1)|浏览(122)

我是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]

我哪里做错了?

wsxa1bj1

wsxa1bj11#

"什么都没有"
您没有做错任何事情。NuGet restore不支持JavaScript/TypeScript项目,您可以忽略警告,如its documentation所述。

相关问题