We have 3 years old solution (.sln) with about 20 projects (.csproj). It is reasonable to start using FxCop and/or StyleCop? Maybe we should use it for several small projects first but not for whole solution?
It would be good to see some experienced answers.
Thanks.
EDIT: We are using TeamCity for continuous integration. And we have no possibility to use ReSharper. 🙁 CodeRushXpress only.
Yes, you should, but slowly.
Get a copy of ReSharper, install StyleCop, and get the StyleCop for ReSharper plugin, setup which rules you’d like to use, and from then on every file you open will be full of wiggly blue lines to tell you where things are bad.
If you just fix them, one file at a time, you’ll eventually end up with a nice clean project, without the need to convince your boss to let you spend 3 weeks going through your project doing nothing that results in chargable time!
Getting clean code is like refactoring, if you try and do it over an entire project all at once, you’re going to end up in a pickle 🙂