代码分析签入策略未强制执行以清理代码分析警告
我对代码分析政策有疑问。
代码分析策略是否必须强制用户在签入之前修复代码分析警告?如果他们不这样做,政策就会失败。是不是错了?
但是,当我尝试使用代码分析警告签入 TFS 我的代码时,我没有收到任何与此相关的策略失败信息。
正常吗?
I have got problem with Code analysis policy.
Must code analysis policy enforce users to fix code analysis warnings before check-in? If they don't, policy failure occurs. Is it wrong?
But when i am trying to check-in TFS my codes with code analysis warnings, i don't get any policy failures about this.
Is it normal?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否看到因 CA 错误导致签入策略失败?如果没有,那么您似乎遇到了问题。但是,如果您看到失败是由于错误而不是警告,则您正在经历预期的行为。如果您希望在给定规则失败时阻止签入,则必须将违反该规则的行为设置为错误而不是警告。对于 Visual Studio 2010,这可以通过编辑目标 CA 规则集轻松完成。
Do you see check-in policy failure for CA errors? If not, then you would seem to have a problem. However, if you are seeing failures for errors but not for warnings, you are experiencing the expected behaviour. If you wish to prevent a check-in when a given rule fails, you must set violations of that rule to be treated as errors instead of as warnings. For Visual Studio 2010, this can most easily be done by editing your target CA ruleset.