Visual Studio Code Analysis vs StyleCop + FxCop

前端 未结 3 940
北恋
北恋 2020-12-07 13:07

I used previously StyleCop + FxCop on my Visual Studio\'s projects. But now I am testing Visual Studio Code Analysis tool, which is easier to integrate into MSBuild, and I h

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-07 13:46

    My understanding is that Visual Studio Code Analysis is basically a slightly modified version of FxCop. From my experience they are almost the same thing (in fact I believe Code Analysis uses the FxCop executable behind the scenes).

    Although there is overlap between FxCop/CodeAnalysis and StyleCop; FxCop tends to focus more on design rules and StyleCop is focusing on coding style (casing, white space, indents, etc).

    Also FxCop analyzes the IL while StyleCop analyzes the source code directly. This imposes a different set of restrictions on what rules they can each enforce.

提交回复
热议问题