class ConflictDetectionTransformation

Transformation that detects conflicting rules

Constructors

new
ConflictDetectionTransformation(
logger?: ILogger,
)

Creates a new ConflictDetectionTransformation

Properties

readonly
name: string

Human-readable name of the transformation

The transformation type identifier

Methods

private
checkSubdomainConflicts(
domain: string,
allowingRules: { rule: string; index: number; }[],
blockingByDomain: Map<string, { rule: string; index: number; }[]>,
): void

Checks for subdomain conflicts

Clears detected conflicts

private
createConflict(
blockingRule: string,
blockingIndex: number,
allowingRule: string,
allowingIndex: number,
domain: string,
): RuleConflict

Creates a conflict record

executeSync(rules: readonly string[]): readonly string[]

Detects conflicting rules (blocking vs. allowing same domain)

private
extractDomain(rule: string): string | null

Extracts domain from a rule

Gets the detected conflicts

Gets conflict detection statistics

private
resolveConflicts(rules: readonly string[]): readonly string[]

Resolves conflicts based on strategy