VS2010静态分析器中规则的正确选择
VS2010的静态分析器中有很多组:
- 所有规则
- 基本正确性规则
- 基本设计指南规则
- 扩展正确性规则
- 扩展设计指南规则
- 全球化规则
- 最低推荐规则
- 安全规则
但是很难决定一个合适的选项。
您使用什么选项?大多数人使用什么选项?
我通常使用 C/C++ 进行工作。
There are many groups in VS2010's static analyzer:
- All Rules
- Basic Correctness Rules
- Basic Design Guideline Rules
- Extended Correctness Rules
- Extended Design Guideline Rules
- Globalization Rules
- Minimum Recommended Rules
- Security Rules
But it is too hard to decide on a proper option.
What option do you use? What option do most of people use?
I usually work with C/C++.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
就我个人而言,我喜欢以下规则:
但我有点着迷于代码和设计的清晰度。在某些地方,设计规则变得很麻烦而不是有帮助,因为其中一些只是建议,有时我会违反规则来实现黑客或其他东西。但是,如果您管理的团队对设计没有很好的理解,那么这些规则可以帮助您解决一些问题。
Personally, I like the following:
But then I'm slightly obsessed with code and design clarity. There are some places where the Design rules become a nuisance rather than a help because some of them are just recommendations and there are times when I'm going against the rules to achieve a hack or something. But if you manage a team that doesn't have a good understanding of design these rules can help you out a bit.