Question: What is a check-in policy?

- J.D. Meier, Jason Taylor, Alex Mackman, Prashant Bansode

Answer

You can use check-in policies to enforce coding standards upon check-in. For example, you can require that each developer runs static code analysis on the code before it is checked in,.

The following check-in policies are available by default with VSTS:
  • Code Analysis – Requires that code analysis be run before check-in.
  • Test Policy – Requires that check-in tests be completed before check-in.
  • Work Items – Requires that one or more work items be associated with the check-in.

You can create a custom check-in policy to perform checks that are not available by default. For example, you can disallow code patterns such as banned API calls, force the use of check-in comments, or check against your team’s style guidelines.

Additional Resources

Last edited Jul 18, 2007 at 11:23 PM by jtaylorsi, version 8

Comments

No comments yet.