In Team Foundation Server, you have the concept of check-in policies. This feature allows you to define a set of checks that have to succeed before a developer can check-in it’s code. But a developer can always override these check-in policies and still do a check-in.
A lot of customers ask if they can block the user from overriding the policy. To state it clear: you cannot disable this feature. However you can get alerts when someone overrides the policies:
- Click Team --> Alerts Explorer.
- Add a CheckinEvent.
- Set Alert Definition to PolicyOverrideComment<>''