Turning off policy override in TFS:-
check all the TFS policy from by click this link:- Policy
when the policy doesn't meet the policy then this error alert "check-in validation failed. a policy warning override reason and/or a check-in note is required."
when we are doing check in the code in TFS below error come as shown in the image.
For this we follow the following step:-
1. Click on the TFS Setting
3. click on "check in policy" tab
4.click on "Add Button"
if any policy added by you or unwanted policy then remove it.