The code-analysis check-in policy can also fail due to the following reasons:
- Code analysis is not enabled in the active configuration.
To correct this, ensure that the active configuration matches all the required code analysis settings.
- The version of the rules in the client and server do not match.
Ensure that the versions of the code analysis rules are in sync.