Skip to content

Gendarme.Rules.Naming.UseCorrectSuffixRule(git)

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

UseCorrectSuffixRule

Assembly: Gendarme.Rules.Naming
Version: git

Description

This rule ensure that types that inherit from certain types or implement certain interfaces have a specific suffix. It also ensures that no other types are using those suffixes without inheriting/implementing the types/interfaces. E.g.

Examples

Bad example:

public sealed class SpecialCode : Attribute {
    // ...
}

Good example:

public sealed class SpecialCodeAttribute : Attribute {
    // ...
}

Source code

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

Clone this wiki locally