-
Notifications
You must be signed in to change notification settings - Fork 4
Gendarme.Rules.Naming.AvoidNonAlphanumericIdentifierRule(git)
Sebastien Pouliot edited this page Mar 2, 2011
·
1 revision
Assembly: Gendarme.Rules.Naming
Version: git
This rule ensures that identifiers like assembly names, namespaces, types and members names don't have any non-alphanumerical characters inside them. The rule will ignore interfaces used for COM interoperability - i.e. decorated with both InterfaceType and Guid attributes.
Bad example:
namespace New_Namespace {
public class My_Custom_Class {
public int My_Field;
public void My_Method (string my_string)
{
}
}
}
Good example:
namespace NewNamespace {
public class MyCustomClass {
public int MyField;
public void MyMethod (string myString)
{
}
}
}
- Prior to Gendarme 2.2 this rule was named DetectNonAlphanumericInTypeNamesRule
You can browse the latest source code of this rule on github.com
Note that this page was autogenerated (3/17/2011 1:55:44 PM) based on the xmldoc
comments inside the rules source code and cannot be edited from this wiki.
Please report any documentation errors, typos or suggestions to the
Gendarme Mailing List. Thanks!