I have a large high quality c# framework codebase that I nevertheless want to try to improve.
Is fxcop an effective tool for improving .NET frameworks? I know Microsoft uses the tool internally, but how do external users find it? Worthwhile?
I already have a zillion lines of code and a well established style, can it be adapted to our style and still provide good guidance?
Roughly, how long will it take to set up? Hours, days, weeks? Will I learn something useful sooner that later?
Yes absolutely. I used it for a year and a half. It spots all kinds of problems and gotchas and it's taught me a thing or two. Microsoft knows best in many cases.
Setting up is just a question of ticking a few boxes and modifying a few build scripts, well worth the effort. You will learn a lot from it if you research decisions it makes that you don't understand and remain open-minded.
Its Useful most of the time, not always! (you need to take it seriously only for some core issues, leaving out issues that are very particular to developing code in microsoft's style).
Some of the guidance given by it is independent of style and is dependent on whether you are following good programming practices or not, so yes you can get some guidance from it.
I don't think setup will take you much time, it should be couple of hours at max.
Thanks
I find fxCop to be a good tool to enforce a coding standard. If you already have your own standard and you follow it consistently I don't see much reason to change, even more for so many lines of code. Setting up is pretty easy, running and fixing everything is something else.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With