Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I have been reading information and the usage of FxCop and StyleCop for a day or so. But I also would like to have your opinions? You useful and important to use these two programs. I will be glas if you can share your thoughts with me.

Thanks
Posted

1 solution

First, about FxCop. I think it is a very useful if you take is critically. You certainly need to adjust the rule sets and customize some rule to get a reasonable check. In my opinion, some rules cannot be used because they are simply idiotic. I give some example with argument in my past answer:

FXCop - How seriously do you take it?[^].

Please also see the opinion of OP Joe_Dert and Andreas Gieriet — they are interesting and make sense. Basically, we all agree.

Now, StyleCop. This is a very different thing. I see no reason to recommend it. I tested it just once to through out in disgust. It's much worse than FxCop. How about such "improvement": using clauses are re-sorted alphabetically. I tend to sort group them semantically, from lower level to application level. We human being remember things semantically, positionally, etc. For alphabetic search, there is a Search dialog. Many other stupid things. I cannot imaging how can it help and why. However, I can imagine some people who might like it.

Style can only be as good as it supports maintenance of the code.

Well, see by yourself.

—SA
 
Share this answer
 
v2
Comments
wonder-FOOL 25-Jan-12 12:44pm    
I have voted 5+ thank you very much for the detailed answer I really appreciate it and respect your solutions. Thanks.
Sergey Alexandrovich Kryukov 25-Jan-12 12:55pm    
You are welcome.

Good luck, call again.
--SA
Sergey Alexandrovich Kryukov 25-Jan-12 14:33pm    
By the way, how about accepting this answer formally (green button) -- thanks.
--SA
wonder-FOOL 25-Jan-12 19:41pm    
:) I know how to accept the answer. At first I have 5ed you because I thought some other people might answer it but seems like noone did it so i went ahead and marked it as an answer now.
Sergey Alexandrovich Kryukov 25-Jan-12 20:04pm    
Great, thanks.

Best,
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900