Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which rule from FxCop do you deactivate?

I personally don't use FxCop yet. We want to work out the unit testing first before going with code analysis. However, which rules would you permanantly deactivate? Which rules would you deactivate temporarily and in which situation?

like image 326
Maxime Rouiller Avatar asked Dec 18 '22 10:12

Maxime Rouiller


1 Answers

I dislike rule CA1021: Avoid out parameters. Out parameters are useful for many different patterns (including the .Net Try* pattern). Out can certainly be overused but really it seems overkill to have an FxCop rule for it.

Rule CA1021

like image 141
JaredPar Avatar answered May 03 '23 04:05

JaredPar