How to prevent FxCop from analyzing auto-generated code?

前端 未结 3 1418
-上瘾入骨i
-上瘾入骨i 2021-02-20 11:27

FxCop (tool for static code analysis) gives me an error while checking code behind of .edmx model. How to prevent FxCop from analyzing auto-generated code (or at least Entity Fr

3条回答
  •  清歌不尽
    2021-02-20 12:09

    You can skip assembly or rules(use checkbox in FxCop.exe to skip rules or assembly. Or even create your new rules for FxCop to suit your standard. FxCop also provide attributes which classes you do not want to verify.

提交回复
热议问题