When you use either Visual Studio Team Suite or Visual Studio Team System Development Edition, you can create a code analysis check-in policy. The code analysis check-in policy can be used to control and improve the quality of code that is checked into the code base.
The policy passes when the build is up to date and there are no code analysis errors. In addition, the rules enabled in the project are at least as restrictive as the rules that are defined in the check-in policy.
Important Note: |
|---|
To use check-in policies, you must be connected to
Team Foundation Server.
|
For information about check-in policy failures, see Code Analysis Policy Errors.
How to: Connect to Team Foundation Server
Other Resources