473,508 Members | 2,361 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Microsoft.Naming: CA1703

While using VS2008, I have a word that is beging flaged by the static code
analysis tool as a violation of CA1703,
ResourceStringsShouldBeSpelledCorrectly. I have added the word to my
CustomDictionary.xml file and set it's build action to
"CodeAnalysisDictionary". I still get the error.

The word is actually an abbreviation: ECN which means "Engineering Change
Notice." In my case, I need to refer to the ECN in the plural, so I have it
written as "ECNs" which is correct according to to Microsoft Manual of Style
V3 which states "form the plural of an acronum by adding an s with no
apostrophe." It further gives the examples of "APIs" and "CPUs" as correct
plural abreviations. Following this rule, "ECNs" is correct, but try as I
might, I cannot get the Visual Studio Static Code Analysis tool to stop
complaining about "ECNs". If I spell it in all uppercase as "ECNS" it's
happy, but with the "s" is lowercase, it complains. Is there a solution
short of using the SuppressMessage attribute?
Jun 27 '08 #1
3 1711
Hello,

I think several rules do apply here:

1. Acronyms should only be capitalized if they consist of two letters.
2. All other acronyms should be spelled in PascalCase.
3. Well-known acronyms should be spelled all uppercase (API, CPU, etc)
4. With a plural, append a lowercase s

I hope I remember them all correctly - I don't have my Framework Design
Guidelines book around.

So... try Ecns.

Kind regards,
Henning Krause

"Joe Monnin" <Jo*******@discussions.microsoft.comwrote in message
news:9C**********************************@microsof t.com...
While using VS2008, I have a word that is beging flaged by the static code
analysis tool as a violation of CA1703,
ResourceStringsShouldBeSpelledCorrectly. I have added the word to my
CustomDictionary.xml file and set it's build action to
"CodeAnalysisDictionary". I still get the error.

The word is actually an abbreviation: ECN which means "Engineering Change
Notice." In my case, I need to refer to the ECN in the plural, so I have
it
written as "ECNs" which is correct according to to Microsoft Manual of
Style
V3 which states "form the plural of an acronum by adding an s with no
apostrophe." It further gives the examples of "APIs" and "CPUs" as
correct
plural abreviations. Following this rule, "ECNs" is correct, but try as I
might, I cannot get the Visual Studio Static Code Analysis tool to stop
complaining about "ECNs". If I spell it in all uppercase as "ECNS" it's
happy, but with the "s" is lowercase, it complains. Is there a solution
short of using the SuppressMessage attribute?
Jun 27 '08 #2
How do you PascalCase an acronym? Each letter represents the start of a word
so the whole thing would be uppercased, no? In any event, ECN is a well
known acronym in my industry. If ECNs was a variable name, I would have no
problem with your suggestion, but since this is a piece of text displayed to
the user, it should follow the MoS rules and be displayed ECNs. Are you
saying there is no way to to allow this with the CustomDictionary?

"Henning Krause [MVP - Exchange]" wrote:
Hello,

I think several rules do apply here:

1. Acronyms should only be capitalized if they consist of two letters.
2. All other acronyms should be spelled in PascalCase.
3. Well-known acronyms should be spelled all uppercase (API, CPU, etc)
4. With a plural, append a lowercase s

I hope I remember them all correctly - I don't have my Framework Design
Guidelines book around.

So... try Ecns.

Kind regards,
Henning Krause

"Joe Monnin" <Jo*******@discussions.microsoft.comwrote in message
news:9C**********************************@microsof t.com...
While using VS2008, I have a word that is beging flaged by the static code
analysis tool as a violation of CA1703,
ResourceStringsShouldBeSpelledCorrectly. I have added the word to my
CustomDictionary.xml file and set it's build action to
"CodeAnalysisDictionary". I still get the error.

The word is actually an abbreviation: ECN which means "Engineering Change
Notice." In my case, I need to refer to the ECN in the plural, so I have
it
written as "ECNs" which is correct according to to Microsoft Manual of
Style
V3 which states "form the plural of an acronum by adding an s with no
apostrophe." It further gives the examples of "APIs" and "CPUs" as
correct
plural abreviations. Following this rule, "ECNs" is correct, but try as I
might, I cannot get the Visual Studio Static Code Analysis tool to stop
complaining about "ECNs". If I spell it in all uppercase as "ECNS" it's
happy, but with the "s" is lowercase, it complains. Is there a solution
short of using the SuppressMessage attribute?

Jun 27 '08 #3
Hi Joe,

I'm not sure about the custom dictionary.

Kind regards,
Henning Krause
"Joe Monnin" <Jo*******@discussions.microsoft.comwrote in message
news:9D**********************************@microsof t.com...
How do you PascalCase an acronym? Each letter represents the start of a
word
so the whole thing would be uppercased, no? In any event, ECN is a well
known acronym in my industry. If ECNs was a variable name, I would have
no
problem with your suggestion, but since this is a piece of text displayed
to
the user, it should follow the MoS rules and be displayed ECNs. Are you
saying there is no way to to allow this with the CustomDictionary?

"Henning Krause [MVP - Exchange]" wrote:
>Hello,

I think several rules do apply here:

1. Acronyms should only be capitalized if they consist of two letters.
2. All other acronyms should be spelled in PascalCase.
3. Well-known acronyms should be spelled all uppercase (API, CPU, etc)
4. With a plural, append a lowercase s

I hope I remember them all correctly - I don't have my Framework Design
Guidelines book around.

So... try Ecns.

Kind regards,
Henning Krause

"Joe Monnin" <Jo*******@discussions.microsoft.comwrote in message
news:9C**********************************@microso ft.com...
While using VS2008, I have a word that is beging flaged by the static
code
analysis tool as a violation of CA1703,
ResourceStringsShouldBeSpelledCorrectly. I have added the word to my
CustomDictionary.xml file and set it's build action to
"CodeAnalysisDictionary". I still get the error.

The word is actually an abbreviation: ECN which means "Engineering
Change
Notice." In my case, I need to refer to the ECN in the plural, so I
have
it
written as "ECNs" which is correct according to to Microsoft Manual of
Style
V3 which states "form the plural of an acronum by adding an s with no
apostrophe." It further gives the examples of "APIs" and "CPUs" as
correct
plural abreviations. Following this rule, "ECNs" is correct, but try
as I
might, I cannot get the Visual Studio Static Code Analysis tool to stop
complaining about "ECNs". If I spell it in all uppercase as "ECNS"
it's
happy, but with the "s" is lowercase, it complains. Is there a
solution
short of using the SuppressMessage attribute?

Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1331
by: scsharma | last post by:
Hi, I am looking for microsoft standards for developing web applications using ..net 1.1 and C#. Specifically i am looking for: 1. UI standards 2. Naming Convention 3. Good coding practices....
71
7847
by: Lauren Wilson | last post by:
Hello folks, Would love yo get all informed opinions and/or facts on the following: Over the last few weeks I have spent quite a bit of time reviewing all the Access and .NET stuff I could...
4
7135
by: Mark Broadbent | last post by:
stupid question time again to most of you experts but this is something that continually bothers me. I am trying to get into the habit of naming variables and controls in an assembly as per...
14
3110
by: 42 | last post by:
Hi, Stupid question: I keep bumping into the desire to create classes and properties with the same name and the current favored naming conventions aren't automatically differentiating them......
3
969
by: Mario Novado | last post by:
Lately I came to know that Microsoft is suggesting to go with underscore for naming convention for variables (Am I right?). Ex: Dim strMyName as String ---> Dim str_MyName as String Any one...
35
12130
by: Smithers | last post by:
Is it common practise to begin the name of form classes with "frm" (e.g., frmOneForm, frmAnotherForm). Or is that generally considered an outdated convention? If not "frm" what is a common or...
9
7017
by: BillCo | last post by:
I'm coming from a MS Access background and so I'm very used to and comfortable with the hungarian (Leszynski et al) naming conventions. However, I'm getting started into my first SQL Server...
8
6143
oll3i
by: oll3i | last post by:
it worked but suddenly when i run it and click a button it throws exception ? D:\SR>java Producent queue1 queue2 queue3 queue4 queue1,queue2,queue3,queue4...
2
4979
by: CoreyReynolds | last post by:
Hello all, I'm working with Access 2007 and my VB code is getting an error at: DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12, _ strSourceName, strFileName, False ...
0
7115
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7489
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4705
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.