FxCop Spell Checks Company Name in Namespace

I am testing FxCop (through the user interface, not included in CruiseControl.NET, etc.) and I am encountering some problems. Spelling checker doesn’t seem to like the name of my company and the name of the product, and she asks me:

Correct the spelling of 'CompanyName' in namespace 
name 'CompanyName.Product.TimerJobs.FeatureReceivers'.
  • I am writing a rule for this, if so, how?
  • Or is there a way to add to the dictionary?
  • I also have some Dutch language parameters (they are tied to Sharepoint's parameters ObjectDataSource, so they need to stay Dutch because the client wants it), can I somehow add the Dutch library to FxCop?

Edit

I found CustomDictionary.xml, but is it considered best practice? What about the fact that more people will come to the team, do they need a copy of the dictionary or is it better to switch to continuous integration?

+3
source share
1 answer

You must save CustomDictionary.xml, as well as the FxCop project file, under version control along with the rest of the project. In this way, everyone gets a dictionary, and continuous integration can also raise it.

About spell checking in the Netherlands ... I think your best option would be for:

  • Add offensive parameter names to the dictionary

  • Manually rule out rule violations

I prefer nr 2 because it is more specific and will not allow the use of these Dutch names anywhere else.

+6

Source: https://habr.com/ru/post/1714483/


All Articles