Open sandboxFocus

Class DerivedTypesMustRespectRegexNamingConventionAttribute

Aspect that, when applied to a type, reports a warning for any derived type that does not respect a naming convention given as regular expression.

Inheritance
DerivedTypesMustRespectRegexNamingConventionAttribute
Namespace: Metalama.Extensions.Architecture.Aspects
Assembly: Metalama.Extensions.Architecture.dll
Syntax
public class DerivedTypesMustRespectRegexNamingConventionAttribute : TypeAspect, IAspect<INamedType>, IAspect, ICompileTimeSerializable, ITemplateProvider, IEligible<INamedType>

Constructors

Name Description
DerivedTypesMustRespectRegexNamingConventionAttribute(string)
DerivedTypesMustRespectRegexNamingConventionAttribute(string, string)

Properties

Name Description
DisplayPattern
ExclusionPredicateType

Gets a Type, derived from ReferencePredicate, that determines exclusions for the current architecture rule. Specifically, no warning will be reported if the IsMatch(ReferenceValidationContext) method of the ReferencePredicate returns true. This type must have a default constructor.

RegexPattern

Methods

Name Description
BuildAspect(IAspectBuilder<INamedType>)

Initializes the aspect. The implementation must add advice, child aspects and validators using the builder parameter.

ToString()

Extension Methods