如何从c ++核心准则检查器中排除文件夹检查路径? [英] How to exclude folders from c++ core guidelines checkers check path?
问题描述
我的问题是,Nuget软件包(在solutions/packages文件夹内)引起了很多警告,并且对其进行分析已经花费了很多时间.
My problem is that the Nuget packages (inside solutions /packages folder) are causing a lot of warnings and analyzing them is taking ages.
我尝试从静态分析中排除文件夹,但没有成功.我的理解是,这将使用CAExcludePath环境变量来实现.但是我应该在哪里设置CAExcludePath环境变量?我已经尝试通过project-> debugger-> environment字段进行设置.
I have tried excluding folders from static analysis with no success. I have an understanding that this would be achieved using a CAExcludePath enviroment variable. But where should I set the CAExcludePath environment variable? I have already tried setting it through project->debugger->environment field.
推荐答案
可以在C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\CodeAnalysis\Microsoft.CodeAnalysis.Targets
中访问该变量,并且可以通过增加构建输出的详细程度(Tools->Options->Projects and Solutions->Build and Run -> MSBuild project build output verbosity to 'Diagnostic'
)来查看其值.设置变量并没有不帮助我解决了这个问题.我正在使用MSVS Professional 2017 ver 15.2(26430.15)
The variable is accessible in C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\CodeAnalysis\Microsoft.CodeAnalysis.Targets
and its value can be seen by increasing build output verbosity (Tools->Options->Projects and Solutions->Build and Run -> MSBuild project build output verbosity to 'Diagnostic'
). Setting the variable did not helped me with the issue though. I'm using MSVS Professional 2017 ver 15.2 (26430.15)
这篇关于如何从c ++核心准则检查器中排除文件夹检查路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!