Skip to content

Gendarme.Rules.Design.InternalNamespacesShouldNotExposeTypesRule(git)

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

InternalNamespacesShouldNotExposeTypesRule

Assembly: Gendarme.Rules.Design
Version: git

Description

This rule checks for externally visible types that reside inside internal namespaces, i.e. namespaces ending with Internal or Impl.

Examples

Bad example:

namespace MyStuff.Internal {
    public class Helper {
    }
}

Good example (internal type):

namespace MyStuff.Internal {
    internal class Helper {
    }
}

Good example (non-internal namespace):

namespace MyStuff {
    public class Helper {
    }
}

Source code

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

Clone this wiki locally