It would be great if FSharp.Analyzers.SDK.Testing had some helper function to load an existing local F# project and run a specific analyzer on a file.
Input would be something like:
val getContextsForProject: fsprojPath: string -> FSharpProjectOptions * Map<string, CliContext>