SPCAF is a SharePoint Code Analysis Framework developed by RENCORE GmbH. It provides detailed information about SharePoint customization’s (WSPs or Add-ins) code quality, dependencies, complexity and more.
Use SPDocKit to load WSPs information from your SharePoint farm and then add SPCAF reports using Extension Manager to analyze them. Available SPCAF reports include Analysis Summary, Code Quality, Code Metrics, Code Dependencies, and Code Inventory. They are located in the Content & Usage Reports section of SPDocKit.
If you only wish to try the SPCAF extension without activation, there is a trial mode where you can see the summary report. Click here for more information.
To install SPCAF extension you can use either online or offline installation. For detailed instructions click here.
As we mentioned before, you will receive your license key from Rencore. The key will be in a plain text format. This is what you need to do to create a license file: Create a file with extension “.lic”, e.g., “license.lic“. Then, open the file in your preferred text editor (e.g., notepad) and paste in your license key.
After you install the extension, you need to activate it. Take the license file (whose name must be license.lic) and place it in: “%ProgramData%\SPDocKit\Extensions\SPCAF”.
Please note that, by default, the folders Extensions and SPCAF do not exist and you need to create them.
After that, go to the SPCAF Reports in the Content & Usage Reports section of SPDocKit. Select any report, and you will notice the following message:
Click the Activate your license button.
You will notice a challenge code (in the previous picture). Visit the webpage activation.spcaf.com and enter the code, as well as your e-mail address and the license key. The license key is the same one from the second step of this wizard. You need to open it with any text editor and copy/paste it. Click Submit. You will receive further instructions in your e-mail shortly, but here is what you need to do:
Open the email and take the attached file (activations.caf). Place it in the following folder: “%USERPROFILE%\AppData\Local\SPCAF”
And that is it. You may try opening some of the SPCAF reports to make sure they are working properly.