views:

70

answers:

1

I have a problem with the code analysis rule CA1726:UsePreferredTerms. Our business domain has two crucial concepts named Case and Flag. According to CA, it's apparently a deadly sin to use these names, however I really don't care since, as I said, they are crucial concepts in our domain model. CA complains not only about the type declarations but about every method parameter-name aswell. So does anyone know if there is a workaround other than adding loads of suppressions or disabling the rule altogether? Could I add the names to a custom dictionary?

+2  A: 

I would suggest adding the names to a custom dictionary as your first ditch effort, yes. It's a dead-simple thing to do, and I've had to add a custom dictionary for every single non-trivial project that I've worked on for various problem-domain terms.

Greg D
@Greg D: Thanks, I will.
klausbyskov