Do you know which check-in policies to enable?

Last updated by Tylah Kapa [SSW] over 2 years ago.See history

Check-in policies are a great way to enforce code quality before it hits your source control repository. SSW recommends that the following check-in policies be enabled by default on your project:

  1. Changeset Comments Policy - To enforce that all check-in contain comments
  2. SSW Code Auditor - To enforce coding standards and best practices before check-in
  3. Work Items – To ensure check-ins are linked to a Work Item in TFS

To enable these policies:

  1. Click Settings in the Team Explorer Home hub
  2. Click Source Control in the Team Project section (not Team Project Collection)
  3. Open the Check-in Policy tab
  4. Click Add... and select the check-in policies above. If you don’t have SSW Code Auditor installed, download it here.add

checkin policies
Figure: Choose check-in policies in TFS

We open source. Powered by GitHub