Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

FxCop: IdentifiersShouldBeSpelledCorrectly

1 réponse
Avatar
Sylfelin
Bonjour,

Fxcop me renvoi le message ci-dessus. Qeelle est la correction à
réaliser exactement ?

Merci

CriticalWarning, Certainty 75, for IdentifiersShouldBeSpelledCorrectly
{
Target : WriteBool(System.String,System.Boolean):System.Void
(IntrospectionTargetMethodBase)
Id : 0#name (String)
Location :
file:///C:/PROJETS%2520C%23%25202005/_COMMON%2520CLASS%25202005/Settings/Settings/Settings.cs<230>
(String)
Resolution : "In method Settings.WriteBool(String, Boolean):Void,
correct the spelling of the unrecognized token
'name'
in parameter name 'name' or strip it entirely if it
represents any sort of hungarian notation."
Help :
http://www.gotdotnet.com/team/fxcop/docs/rules.aspx?version=1.35&url=/Naming/IdentifiersShouldBeSpelledCorrectly.html
(String)
Category : Microsoft.Naming (String)
CheckId : CA1704 (String)
RuleFile : Naming Rules (String)
Info : "The individual words that make up an identifier
should
not be abbreviated and should be spelled correctly.
If this rule generates a false positive on a term
that
should be recognized, add the word to the FxCop
custom
dictionary."
Created : 10/01/2008 11:30:39 (DateTime)
LastSeen : 10/01/2008 11:36:58 (DateTime)
Status : Active (MessageStatus)
Fix Category : Breaking (FixCategories)

--

--------------------------
Merci
Sylfelin

1 réponse

Avatar
Ambassadeur kosh
pour lui, name, c'est un "nom à tout faire", il faut un nom plus "précis",
comme clientName, factureName...
mais bon, franchement, y'a pas mort d'homme, exception sur la regle pour ce
cas et puis voila.

Cordialement,

Frédéric


"Sylfelin" a écrit dans le message de news:

Bonjour,

Fxcop me renvoi le message ci-dessus. Qeelle est la correction à réaliser
exactement ?

Merci

CriticalWarning, Certainty 75, for IdentifiersShouldBeSpelledCorrectly
{
Target : WriteBool(System.String,System.Boolean):System.Void
(IntrospectionTargetMethodBase)
Id : 0#name (String)
Location :
file:///C:/PROJETS%2520C%23%25202005/_COMMON%2520CLASS%25202005/Settings/Settings/Settings.cs<230>
(String)
Resolution : "In method Settings.WriteBool(String, Boolean):Void,
correct the spelling of the unrecognized token 'name'
in parameter name 'name' or strip it entirely if it
represents any sort of hungarian notation."
Help :
http://www.gotdotnet.com/team/fxcop/docs/rules.aspx?version=1.35&url=/Naming/IdentifiersShouldBeSpelledCorrectly.html
(String)
Category : Microsoft.Naming (String)
CheckId : CA1704 (String)
RuleFile : Naming Rules (String)
Info : "The individual words that make up an identifier should
not be abbreviated and should be spelled correctly.
If this rule generates a false positive on a term that
should be recognized, add the word to the FxCop custom
dictionary."
Created : 10/01/2008 11:30:39 (DateTime)
LastSeen : 10/01/2008 11:36:58 (DateTime)
Status : Active (MessageStatus)
Fix Category : Breaking (FixCategories)

--

--------------------------
Merci
Sylfelin