class
FixerRegistry
public static class FixerRegistry Discovers and caches IIssueFixer implementations. Built-in fixers plus any external type decorated with IssueFixerAttribute are auto-registered on first access. External code may also register additional fixers explicitly via Register(IIssueFixer, int).
Properties
All public static IEnumerable<IIssueFixer> All { get; } Enumerates every registered fixer in dispatch order. Public so the Settings "Extensions" card can surface user-contributed fixers alongside built-ins.
Methods
GetFixer public static IIssueFixer GetFixer(ScanIssue issue) Returns the first fixer whose CanFix(ScanIssue) accepts the issue, in ascending Order order, or null.
HasFix public static bool HasFix(ScanIssue issue) Returns true if any fixer can handle the given issue. Exception-safe.
TryFix public static bool TryFix(ScanIssue issue, ILogger log) Find a fixer that can handle issue and apply it. Returns true only if a fixer was found and its Fix method returned true. Both CanFix and Fix are wrapped in try/catch so a misbehaving fixer logs a warning instead of poisoning the caller.
TryFixBatch public static int TryFixBatch(IEnumerable<ScanIssue> issues, ILogger log) Apply TryFix(ScanIssue, ILogger) to a batch of issues. Returns the number of issues successfully fixed.
Register public static void Register(IIssueFixer fixer, int order = 0) Registers an additional fixer at runtime. Useful for consumers that construct fixers with dependencies rather than relying on parameterless ctor discovery.
Refresh public static void Refresh() Force re-discovery on next access. Call after assembly reload.
Generated from Editor/Features/Fixes/Application/FixerRegistry.cs in RefSafe Pro 2.2.0.