Sample Rule |
Sample Rule |
To create a custom rule for SPCAF start with the steps described in SDK Overview.
The follow code shows a sample rule which checks a naming convention for a feature. The rule checks if each deployed feature starts with the company name 'MyCompany'.
First create a class which holds the Category and Description of your cutom rules.
Then create a new class for each custom rule.
Copyright © 2013 RENCORE AB. All Rights Reserved
Disclaimer: The views and opinions expressed in this documentation and in SPCAF are those of the creators and do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. All trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners. SharePoint Code Analysis Framework, Version 4.5.2.7855, see www.spcaf.com for more information |