Vixen
02b45cc4
csharp
public static class DoctorRunner

Looks at a project and says what is wrong with it, changing nothing.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

It repairs nothing, on purpose. vixen import scans in the repairing mode — a file with no sidecar gets one, an orphaned sidecar is quarantined — because that is what opening a project does. A person asking what is wrong wants the answer, not a working tree with edits in it, and a build server asking the same question wants it even more. ScanOptions.ReadOnly exists for exactly this and this is its first caller.

Everything it checks is something that fails later and further away: an asset that was never imported fails at the content build, a catalog naming a bundle that is not there fails on a device, and a duplicate GUID fails when the wrong texture appears on a model.

Methods (2)

  • public static List<Finding> Examine(Project project, string target, string outputDirectory)

    Examines a project.

  • public static bool Report(IEnumerable<Finding> findings, TextWriter output)

    Prints findings, and says whether anything is broken.

Used by (1)

  • VixenCommandVixen.Cli