Thanks, FxCop looks like the way to go. I saw a few articles on writing custom rules and it doesn't look too dificult.