RefSafe Pro

API reference

The public scripting surface of RefSafe Pro 2.2.0 — the types you use to read scan results and to plug your own rules, fixers, and exporters into the pipeline.

All public types live in the RefSafe.Pro namespace, split across two assemblies: RefSafe.Pro.Core (data models and enums, no editor dependency) and RefSafe.Pro.Editor (scanning, extension points, integrations). For a guided introduction with working examples, read extending RefSafe Pro.

Results

Enums

Models

Custom rules

Custom fixers

IIssueFixer interface

Contract for auto-fix implementations that can resolve scan issues.

IssueFixerAttribute class

Marks an IIssueFixer so that FixerRegistry auto-discovers it. External fixers decorated with this attribute are picked up on assembly load.

IFixSuggestionProvider interface

Produces candidate replacements for an issue alongside the deterministic fix the matching IIssueFixer offers. Currently consumed by the missing-reference flow to surface "Replace with…" entries beneath the existing "Clear" action.

FixSuggestion class

One candidate replacement, presented in the Fix-button dropdown.

FixerRegistry class

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).

Custom exporters

IReportExporter interface

Pluggable scan-report exporter. Decorate the implementing type with ReportExporterAttribute so that ExporterRegistry auto-discovers it; RefSafe Pro's UI and CLI will then offer the exporter alongside the built-in CSV/JSON/HTML/TXT/Markdown formats.

ReportExporterAttribute class

Marks an IReportExporter so that ExporterRegistry can auto-discover it and surface it in the RefSafe Pro UI and CLI.

ExporterRegistry class

Discovers IReportExporter implementations decorated with ReportExporterAttribute and exposes them to the UI and CLI. External assemblies get picked up automatically on next cold access; call Refresh to re-scan after assembly reload.

ExporterRegistry.ExporterEntry struct

Metadata + instance for a discovered exporter.

Scripting

This reference is generated from the RefSafe Pro 2.2.0 source, so it always matches the shipping package.