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>) | Defines the aspect implementation by adding advice, child aspects, and validators to the target declaration. |
| ToString() |