Class SerenityProjectValidationRunner
Runs Serenity's project-integrity validators (Health Check, Missing References, Localization Keys, Addressables Tagging, Addressable Keys, Audio Registration, Branding) and reports the combined result — interactively (a menu item that writes JSON) or headlessly (ValidateFromCommandLine()), so CI or an AI agent can confirm a project is correctly wired and self-correct. Hosted here because this assembly already references the Global validator engines and owns the localization one (Global cannot reference Localization without a cycle).
catalog (Hub catalog-staleness) is standalone-only, deliberately excluded from all: it is
catalog-hygiene, not project-wiring health, and must never run on any Hub window-open path.
Inherited Members
Namespace: Serenity.Localization.Installation.Settings.Editor
Assembly: Serenity.UnityLocalization.Installation.Editor.dll
Syntax
public static class SerenityProjectValidationRunner
Methods
RunAll(string)
Runs the selected validators and returns the combined report.
Declaration
public static SerenityValidationReport RunAll(string kind = "all")
Parameters
| Type | Name | Description |
|---|---|---|
| string | kind |
|
Returns
| Type | Description |
|---|---|
| SerenityValidationReport | The populated report. |
ValidateFromCommandLine()
Headless entry point. Reads -validationKind (default all) and optional
-validationResult <path> (writes the JSON report there, even when issues exist), logs the
console report, and exits with code 1 when there are errors so CI / an agent can branch on it.
Declaration
public static void ValidateFromCommandLine()
ValidateProjectToJson()
Editor entry: runs all validators and writes the JSON report to a chosen path.
Declaration
public static void ValidateProjectToJson()