Follow these steps to setup check-in policy to run Code Auditor in TFS:
- Launch SSW Code Auditor
- Go to "Options" menu
- Go to "TFS" tab
- Click on Register button if it is not registered
- Launch Visual Studio
- Go to Team Explorer
- Right click on a Project and select Team Project Settings -> Source Control...
- Go to Check-in Policy tab
- Click Add... and select "SSW Code Auditor"
- Select the rules database
- Click OK to save changes
- Ready to check-in!