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

FxCop: IdentifiersShouldBeSpelledCorrectly

3 réponses
Avatar
Sylfelin
Bonjour,

Fxcop me renvoi le message ci-dessus. Mais je ne vois pas quelle est la
correction à réaliser car le lient de donne rien ?

Merci

CriticalWarning, Certainty 75, for IdentifiersShouldBeSpelledCorrectly
{
Target :
ReadCryptString(System.String,System.String):System.String
(IntrospectionTargetMethodBase)
Id : 0#parameter (String)
Location :
file:///C:/PROJETS%2520C%23%25202008/_COMMON%2520CLASS%25202/Settings/Settings/Settings.cs<255>
(String)
Resolution : "In method Settings.ReadCryptString(String, String)
:String, correct the spelling of the unrecognized
token
'parameter' in parameter name 'parameterName' 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 : 24/01/2008 13:28:55 (DateTime)
LastSeen : 24/01/2008 13:28:55 (DateTime)
Status : Active (MessageStatus)
Fix Category : Breaking (FixCategories)
}

--

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

3 réponses

Avatar
Gilles TOURREAU [MVP]
"Sylfelin" a écrit dans le message de
news:
Bonjour,

Fxcop me renvoi le message ci-dessus. Mais je ne vois pas quelle est la
correction à réaliser car le lient de donne rien ?

Merci

CriticalWarning, Certainty 75, for IdentifiersShouldBeSpelledCorrectly
{
Target :
ReadCryptString(System.String,System.String):System.String
(IntrospectionTargetMethodBase)
Id : 0#parameter (String)
Location :
file:///C:/PROJETS%2520C%23%25202008/_COMMON%2520CLASS%25202/Settings/Settings/Settings.cs<255>
(String)
Resolution : "In method Settings.ReadCryptString(String, String)
:String, correct the spelling of the unrecognized token
'parameter' in parameter name 'parameterName' 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 : 24/01/2008 13:28:55 (DateTime)
LastSeen : 24/01/2008 13:28:55 (DateTime)
Status : Active (MessageStatus)
Fix Category : Breaking (FixCategories)
}

--

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






Bonjour,

Sans doute le nom d'un paramètre qui n'est pas très catholique...
Si vous pouviez montrer le prototype (avec le nom des paramètres) exacte de
la méthode : ReadCryptString, je pourrais vous en dire plus !

Cordialement

--
Gilles TOURREAU - MVP C#


S.A.R.L. P.O.S
Le spécialiste en motoculture depuis + de 30 ans !
http://www.pos.fr
Avatar
Sylfelin
> Sans doute le nom d'un paramètre qui n'est pas très catholique...
Si vous pouviez montrer le prototype (avec le nom des paramètres) exacte de
la méthode : ReadCryptString, je pourrais vous en dire plus !

Cordialement



public string ReadCryptString(string parameterName, string
parameterDefaultValue)
{
return Decrypt(ReadParameter(parameterName, parameterDefaultValue));
}

--

--------------------------
Merci
Sylfelin
Avatar
Gilles TOURREAU [MVP]
"Sylfelin" a écrit dans le message de
news:
Sans doute le nom d'un paramètre qui n'est pas très catholique...
Si vous pouviez montrer le prototype (avec le nom des paramètres) exacte
de la méthode : ReadCryptString, je pourrais vous en dire plus !

Cordialement



public string ReadCryptString(string parameterName, string
parameterDefaultValue)
{
return Decrypt(ReadParameter(parameterName, parameterDefaultValue));
}

--

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






Bonjour,

OK, en fait il ne faut pas nommer vos paramètres "parameterXXXXXX", mais
tout simplement "XXXXXX".

Cordialement

--
Gilles TOURREAU - MVP C#


S.A.R.L. P.O.S
Le spécialiste en motoculture depuis + de 30 ans !
http://www.pos.fr