如何从SonarQube中排除/忽略引用的项目分析 [英] How to exclude/ignore referenced project(s) analysis from SonarQube
问题描述
我有一个包含三个项目(X,Y,Z)的解决方案. Z在Y中引用,Y在X中引用.当我在项目X上使用MSBuild SonarQube Runner启动Analysis时,它也在分析Y和Z.我们有什么解决方案可以忽略递归分析吗?
I have a solution which has three projects (X,Y,Z). Z referenced in Y , Y in X . When I start Analysis with MSBuild SonarQube Runner on project X, it is analyzing Y and Z as well. Do we have any solution for ignoring recursive analysis ?
注意:我无法将解决方案文件分解为多个解决方案文件&引用dll而不是项目.
Note: I can not breakup solution file into multiple solution files & refer dll's rather than projects.
推荐答案
在声纳中->管理->常规设置->分析范围 像这样设置源文件排除": 文件:**/ProjectName/* *(* *之间没有空格)
in sonar -> administration -> General Settings -> Analysis Scope set "Source File exclusions" like that: file:**/ProjectName/* * (without spaces between * *)
这篇关于如何从SonarQube中排除/忽略引用的项目分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!