Udostępnij za pośrednictwem


sharepoint code review tools

doing the code review for sharepoint is not always an easy task. I had to do a code review for a sharepoint project source code, and with the limited experience I had with coding sharepoint, It was not obvious for me to look at other's code, assess it, give recommendations and actions to be taken to improve the code.

Besides looking at the code which was time consuming, I have used two main tools:

1/ Microsoft Fxcop:  an application that analyzes managed code assemblies (code that targets the .NET Framework common language runtime) and reports information about the assemblies, such as possible design, localization, performance, and security improvements ==> https://msdn.microsoft.com/en-us/library/bb429476%28VS.80%29.aspx

2/ Microsoft SharePoint Online Code Analysis Framework (MSOCAF) : it focuses on memory management, security vulnerabilities, exception management, object model usage, quality gates, and it uses Fxcop as part of its analysis process. It is specific to sharepoint, and very useful, however, you have to organize your files into a set of documents which might cause some troubles.

There are other tools like StyleCop and visual studio code analysis, but I think that the tools discussed here are enough, if you keep using many tools, you may end up loosing more time than doing the code review manually without using any tool.

 

You might use the Sample code acceptance checklist for IT organization discussed in https://msdn.microsoft.com/en-us/library/cc707802.aspx , it gives good guidelines for easy review and straight to the point !

 

Good luck with your code review :)