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
Implements
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 |
RegexPattern |
Methods
Name | Description |
---|---|
BuildAspect(IAspectBuilder<INamedType>) | Initializes the aspect. The implementation must add advice, child aspects and validators
using the |
ToString() |