X项目backend代码分析
C#(.net7)代码分析
Release 6.0.0 · SonarSource/sonar-scanner-msbuild · GitHub下载sonar-scanner-6.0.0.81631-net.zip,解压到E:\tools\sonar\sonar-scanner。
#100.37 #/raid5data/Jenkins/workspace//tools/sonar-scanner-6.0.0.81631-net #/raid5data/Jenkins/workspace//tools/sonar-scanner-6.0.0.81631-net/sonar-scanner-5.0.1.3006
<INSTALL_DIRECTORY>/SonarQube.Analysis.xml编辑
<SonarQubeAnalysisProperties xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sonarsource.com/msbuild/integration/2015/1"> <Property Name="sonar.host.url">http://1:9000</Property> <Property Name="sonar.login">sqa_7aa244b1be59855273966c33018c43e44865990e</Property> </SonarQubeAnalysisProperties>
在windows的PATH添加E:\tools\sonar\sonar-scanner
执行代码分析
#dotnet tool install --global dotnet-sonarscanner --version 6.0.0 #dotnet tool uninstall --global dotnet-sonarscanner dotnet E:\tools\sonar\sonar-scanner-6.0.0.81631-net\SonarScanner.MSBuild.dll begin /k:"Beta-X-Backend" /d:sonar.login="sqa_7aa244b1be59855273966c33018c43e44865990e" dotnet build "E:\\SourceCode\Backend\NMS.RT.X.sl
总结
X项目backend代码分析
C#(.net7)代码分析
Release 6.0.0 · SonarSource/sonar-scanner-msbuild · GitHub下载sonar-scanner-6.0.0.81631-net.zip,解压到E:\tools\sonar\sonar-scanner。
#100.37
#/raid5data/Jenkins/workspace//tools/sonar-scanner-6.0.0.81631-net
#/raid5data/Jenkins/workspace//tools/sonar-scanner-6.0.0.81631-net/sonar-scanner-5.0.1.3006
<INSTALL_DIRECTORY>/SonarQube.Analysis.xml编辑
<SonarQubeAnalysisProperties xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.sonarsource.com/msbuild/integration/2015/1">
<Property Name="sonar.host.url">http://1:9000</Property>
<Property Name="sonar.login">sqa_7aa244b1be59855273966c33018c43e44865990e</Property>
</SonarQubeAnalysisProperties>
在windows的PATH添加E:\tools\sonar\sonar-scanner
执行代码分析
#dotnet tool install --global dotnet-sonarscanner --version 6.0.0
#dotnet tool uninstall --global dotnet-sonarscanner
dotnet E:\tools\sonar\sonar-scanner-6.0.0.81631-net\SonarScanner.MSBuild.dll begin /k:"Beta-X-Backend" /d:sonar.login="sqa_7aa244b1be59855273966c33018c43e44865990e"
dotnet build "E:\\SourceCode\Backend\NMS.RT.X.sl