zoukankan      html  css  js  c++  java
  • FxCop vs StyleCop vs Code Analysis

    Here I'm going to clarify the difference between FxCop and StyleCop and Analysis. The main reason I'm writing this post is to give a professional answer to the question about the relationship of the above three. As I'm a little bit green of the tools I work out this artical mainly using resources on the internet.Main reference articles have been marked out at the end of this article. I truly hope it will be helpful to you anyhow.

    FxCop

    1. It runs on compiled DLLs.
    2. As it runs on compiled IL code, it can be used for C#, VB.NET, in short any language which compiles to IL code.

    StyleCop

    1. Keep in mind that it is not a Microsoft product. It is not even a Team System Power Tool. It is a tool developed by a very passionate developer at Microsoft (on evenings and weekends). There's no support, servicing, evolution or anything else beyond what he can get done in his spare time. Style checking is an interesting feature and may show up in an official product at some point down the road.
    2. It runs on actual source code.
    3. Currently it runs only on C#.
    4. The ultimate goal of StyleCop is to allow to produce elegant, consistent code that team members and others who view developer code will find highly readable.

    Code Analysis

    1. No spell checking - FxCop uses a dictionary (plus custom dictionary) to check the names of methods, classes, etc. Code Analysis doesn't seem to do that.
    2. Help - FxCop not only complained when something was wrong but provided a great deal of help/hints to resolve the problem. Code Analysis just seems to present the problem with no sign of a hint.
    3. Note that Code Analysis is only available in the Premium and Ultimate editions of Visual Studio 2010 and also Visual Studio 2005 & 2008 Team System.

    reference:

      1.Stylecop vs FXcop

      2.How to Use FxCop .

  • 相关阅读:
    20155328 《网络攻防》 实验一:PC平台逆向破解(5)M
    20155328 《信息安全系统设计基础》 课程总结
    构建之法
    20155327 2017-2018-2《Java程序设计》课程总结
    20155327 实验五 网络编程与安全
    20155327 网络对抗 实验
    20155327 Exp9 Web安全基础
    20155327 EXP8 Web基础
    20155327 实验四 Android程序设计
    20155327 李百乾 Exp7 网络欺诈防范
  • 原文地址:https://www.cnblogs.com/DebugLZQ/p/3091085.html
Copyright © 2011-2022 走看看