VS2012代码分析不会跳过生成的SWIG代码 [英] VS2012 Code Analysis is not skipping generated SWIG code
本文介绍了VS2012代码分析不会跳过生成的SWIG代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含许多项目的解决方案,其中包括由SWIG生成的C#代码,但代码分析师不会跳过这些。
有没有办法确保代码分析和代码指标跳过这些文件?
干杯,
解决方案
嗨Karrok,
我经常使用 SuppressMessage属性忽略代码分析违规。
参考:
https://msdn.microsoft.com/en-us/library/ms244717.aspx
Best此致,
Hi,
I have a solution with a number of projects that include C# code generated by SWIG, however the Code Analyzer does not skip these.
Is there a way to ensure that Code Analysis and Code Metrics skip these files?
Cheers,
解决方案
Hi Karrok,
I often use the SuppressMessage Attribute to ignore Code Analysis violations.
Reference:
https://msdn.microsoft.com/en-us/library/ms244717.aspx
Best Regards,
这篇关于VS2012代码分析不会跳过生成的SWIG代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文