VB.NET Static Code Anaylsis

╄→гoц情女王★ 提交于 2019-12-01 17:43:27

问题


Does anyone know of a good code static code analyser for vb.net?

I've seen plenty for c#, and I think VS 2008 some one built in. But we're currently only using vs 2005...


回答1:


FxCop does just that.

Specific for VB.NET is Project Analyzer.




回答2:


Depending on what you are looking for Fortify is another application that analyzes code really well, but it isn't a VB specific, works for all of .net




回答3:


You can use the tool NDepend which analysis all .NET code (C#, VB.NET, F#...). For VB.NET code you'll miss 2 metrics on source code comment and source code cyclomatic complexity (but you still have CC computed from IL code).

See all feature of NDepend here http://www.ndepend.com/Features.aspx:
- Code Query and Rule over LINQ (CQLinq)
- Compare Builds
- 82 code metrics
- Manage Complexity and Dependencies
- Detect Dependency Cycles
- Harness Test Coverage Data
- Enforce Immutability and Purity
- Warnings about the health of your Build Process
- Generate custom report from your Build Process
- Diagrams
- Facilities to cope with real-world environment



来源:https://stackoverflow.com/questions/342456/vb-net-static-code-anaylsis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!