class

ValidationRuleAttribute

Namespace
RefSafe.Pro
Assembly
RefSafe.Pro.Editor
public sealed class ValidationRuleAttribute : Attribute

Marks an IValidationRule or IAssetValidationRule implementation for automatic discovery by the ValidationRuleRegistry.

Constructors

ValidationRuleAttribute
public ValidationRuleAttribute( string displayName, string description, IssueSeverity defaultSeverity = IssueSeverity.Warning, bool enabledByDefault = true)

No description available.

Properties

DisplayName
public string DisplayName { get; }

Human-readable rule name shown in settings.

Description
public string Description { get; }

Brief description of what the rule detects.

DefaultSeverity
public IssueSeverity DefaultSeverity { get; }

Default severity when no settings override is applied.

EnabledByDefault
public bool EnabledByDefault { get; }

Whether the rule is enabled by default in new projects.

Generated from Editor/Features/Scanning/Domain/ValidationRuleAttribute.cs in RefSafe Pro 2.2.0.