Code Analysis Policy

Check-in Policy is a generic infrastructure for helping you define things that must be done before checking files into Team Foundation Server. The Code Analysis Policy is a built-in policy that is part of Team Foundation Server.

The Code Analysis Policy allows you to define the code analysis rules that are evaluated at a team-wide level. The configurable nature of this policy allows you to define what rules are important to your current project, while giving individual developers more freedom to define what rules are important for their individual work. The Code Analysis policy will be satisfied if there are current, passing results for the rules it is configured with at check-in time.

Enforcing Code Analysis