Overview: Microsoft SharePoint Online Code Analysis Framework (MSOCAF) is used by companies or people writing custom code solutions for SharePoint online to help them validate the code meets minimium coding requirments to be deployed to SharePoint 365. Using MSOCAF code on a local SharePoint 2010 farm can be used evaluated the custom code before it is submitted to MS for approval on SharePoint 365. Additionally, MSOCAF can submit the custom code to SharePoint Online and perform roll back functionality.
Installed MSOCAF applicationb on my development machine.
Opened MSOCAF > Analyze
Writing solution validators -http://msdn.microsoft.com/en-us/magazine/ee335711.aspx