code analysis - Rule CA1709 and two letter-words -


i have library lot of functions use 2 letter-non english-words this:

  • findedia
  • esprimo
  • enpreparacion
  • ...

anyway, activated code analysys project, , i'm getting ca1709 warning:

ca1709 : microsoft.naming :  corrija el uso de mayúsculas y minúsculas en 'de' en el nombre del miembro '...' cambiándolo 'de'. 

i added code analysis dictionary stated here doesn't ignore warnings. here structure of dictionary.

<?xml version="1.0" encoding="utf-8" ?> <dictionary>   <words>     <recognized>       <word>de</word>       <word>el</word>       <word>en</word>       <word>es</word>       <word>si</word>       ...     </recognized>   </words> </dictionary> 

what else should handling warning without supressing message?.

thanks in advance

you need add them casingexceptions aswell:

  <acronyms>     <casingexceptions>       <acronym>de</acronym>       <acronym>el</acronym>       <acronym>en</acronym>       <acronym>es</acronym>       <acronym>si</acronym>     </casingexceptions>   </acronyms> </dictionary> 

edit: aware of fact misuse, since none of words acronyms. maybe you'd rather want disable specific rules. afterall, many of code analysis' rules based on assumption api written in english.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -