Answered by:
static analysis capabilities

-
I know Visual Studio has static analysis capabilities, though I have never used it.
Can we use visual studio to create custom static analysis code checkers to find code that is not compliant with our coding guidelines? For example, to find code that does not check the return code or OUT argument of a function or method.
Interested in native c++, managed c++, and c# 3.0 or later.
If there is such capabilities which configuration (standard, professional, ultimate) and which version provides them (2010, 2012, 2013, 2015)?
- Edited by veortiz Friday, April 08, 2016 9:04 PM
Question
Answers
-
Hi veortiz,
We often refer to the following document about how to create a custom static code analysis rules and integrate them into Visual Studio 2010:
But I think you could refer to it even if you use the VS2015.
This MSDN document shared some useful information about how to Create a Custom Rule Set in VS2015.
https://msdn.microsoft.com/en-us/library/dd264974.aspx
In addition, as far as I know, we could use Visual Studio Ultimate, Visual Studio Premium, or Visual Studio Professional to create the custom code analyze rule.
https://msdn.microsoft.com/en-us/library/dd264996(v=vs.120).aspx
For VS2015, you could also know that which versions supports this feature under "Debugging and Diagnostics" here:
https://www.visualstudio.com/products/compare-visual-studio-2015-products-vs
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Proposed as answer by Jack Zhai-MSFTMicrosoft contingent staff, Moderator Monday, April 18, 2016 2:34 AM
- Marked as answer by Jack Zhai-MSFTMicrosoft contingent staff, Moderator Wednesday, April 20, 2016 2:17 AM
All replies
-
Hi veortiz,
We often refer to the following document about how to create a custom static code analysis rules and integrate them into Visual Studio 2010:
But I think you could refer to it even if you use the VS2015.
This MSDN document shared some useful information about how to Create a Custom Rule Set in VS2015.
https://msdn.microsoft.com/en-us/library/dd264974.aspx
In addition, as far as I know, we could use Visual Studio Ultimate, Visual Studio Premium, or Visual Studio Professional to create the custom code analyze rule.
https://msdn.microsoft.com/en-us/library/dd264996(v=vs.120).aspx
For VS2015, you could also know that which versions supports this feature under "Debugging and Diagnostics" here:
https://www.visualstudio.com/products/compare-visual-studio-2015-products-vs
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Proposed as answer by Jack Zhai-MSFTMicrosoft contingent staff, Moderator Monday, April 18, 2016 2:34 AM
- Marked as answer by Jack Zhai-MSFTMicrosoft contingent staff, Moderator Wednesday, April 20, 2016 2:17 AM
-
-
Hi veortiz,
Any update? Could you get useful information from my previous reply? If it is helpful for you, please make it as the answer, so it would be helpful for other members who meet the same issue.
Of course, if it is not helpful, please feel free to let me know:)
Sincerely,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.