How to add my own rules for analyzing static code in Visual Studio 2015?

I am using Visual Studio Professional 2015 for my C ++ program on Windows. I tried to add my own static code analysis rules to the static analysis rule set. But it does work. I can only change the ruleset into a custom ruleset. https://msdn.microsoft.com/en-us/library/dd264974.aspx I could not find any guidance on how to add my own rules to this. I found this method of adding rules, but this is for Visual Studio 2010. I find the methodology simpler for Visual Studio 2015. http://blogs.msdn.com/b/codeanalysis/archive/2010/03/26/how-to-write-custom-static-code-analysis-rules-and-integrate-them-into-visual-studio- 2010.aspx

Can anyone help me with this?

+4
source share

Source: https://habr.com/ru/post/1625354/


All Articles