Skip to content

Gendarme.Rules.Naming.UseCorrectCasingRule(git)

Sebastien Pouliot edited this page Mar 2, 2011 · 1 revision

UseCorrectCasingRule

Assembly: Gendarme.Rules.Naming
Version: git

Description

This rule ensures that identifiers are correctly cased. In particular:

  • namespace names are PascalCased
  • type names are PascalCased
  • method names are PascalCased
  • parameter names are camelCased

Examples

Bad example:

namespace A {
    abstract public class myClass {
        abstract public int thisMethod (int ThatParameter);
    }
}

Good example:

namespace Company.Product.Technology {
    abstract public class MyClass {
        abstract public int ThisMethod (int thatParameter);
    }
}

Source code

You can browse the latest source code of this rule on github.com

Clone this wiki locally