zplCore.comzplCore.com

ComplianceRuleInfo

public record ComplianceRuleInfo

Static description of a rule (stable ComplianceRuleInfo.Id, citation, default severity).

Constructors

SignatureDescription
# ComplianceRuleInfo(string Id, string Title, ComplianceSeverity DefaultSeverity, string Source, string Description, bool Advisory = false, string? HelpUri = default)Static description of a rule (stable ComplianceRuleInfo.Id, citation, default severity). Id: Stable code, e.g. "ZPL3101". Custom rules should use an own prefix (e.g. "ACME001"). · Title: Short name shown in reports. · DefaultSeverity: Severity of findings unless the rule reports another one or options override it. · Source: Citation of the requirement (document, release, section), e.g. "GS1 General Specifications 26.0 §5.4.4.2". · Description: What the rule checks and how (one or two sentences). · Advisory: True when the value is a recommendation ("should") or could not be verified from a primary source; such findings never claim a violation of a hard requirement. · HelpUri: Public URL of the source, if any.

Properties

PropertyTypeDescription
Advisory { get; init; }boolTrue when the value is a recommendation ("should") or could not be verified from a primary source; such findings never claim a violation of a hard requirement.
DefaultSeverity { get; init; }ComplianceSeveritySeverity of findings unless the rule reports another one or options override it.
Description { get; init; }stringWhat the rule checks and how (one or two sentences).
HelpUri { get; init; }stringPublic URL of the source, if any.
Id { get; init; }stringStable code, e.g. "ZPL3101". Custom rules should use an own prefix (e.g. "ACME001").
Source { get; init; }stringCitation of the requirement (document, release, section), e.g. "GS1 General Specifications 26.0 §5.4.4.2".
Title { get; init; }stringShort name shown in reports.

Methods

Method SignatureReturnsDescription
# Deconstruct(out string Id, out string Title, out ComplianceSeverity DefaultSeverity, out string Source, out string Description, out bool Advisory, out string HelpUri)void