Header menu logo G-Research F# Analyzers

G-Research FSharp Analyzers

A curated set of Ionide SDK analyzers for F#. These are based on real-world production scenarios encountered within G-Research.

Quickstart

Install the fsharp-analyzers local dotnet tool.

No value returned by any evaluator

Add the FSharp.Analyzers.Build:

<PackageReference Include="FSharp.Analyzers.Build" Version="0.2.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>build</IncludeAssets>
</PackageReference>

And the G-Research.FSharp.Analyzers:

<PackageReference Include="G-Research.FSharp.Analyzers" Version="0.10.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>analyzers</IncludeAssets>
</PackageReference>

Include the following MSBuild property:

<PropertyGroup>
    <FSharpAnalyzersOtherFlags>--analyzers-path &quot;$(PkgG-Research_FSharp_Analyzers)/analyzers/dotnet/fs&quot;</FSharpAnalyzersOtherFlags>
</PropertyGroup>

And invoke:

dotnet msbuild /t:AnalyzeFSharpProject

from the command line.

Further reading

To learn more about Ionide F# analyzers, you can read the official Getting started guide.

G-Research Open Source logo
Multiple items
namespace FSharp

--------------------
namespace Microsoft.FSharp
namespace FSharp.Analyzers
namespace FSharp.Analyzers.SDK
module Utils from FSharp.Analyzers.SDK
val currentFSharpAnalyzersSDKVersion: System.Version
val v: System.Version
property System.Version.Major: int with get
<summary>Gets the value of the major component of the version number for the current <see cref="T:System.Version" /> object.</summary>
<returns>The major version number.</returns>
val typeof<'T> : System.Type
namespace GR
namespace GR.FSharp
namespace GR.FSharp.Analyzers
module TypeAnnotateStringFunctionAnalyzer from GR.FSharp.Analyzers
type StringApplicationResult = | NoTypeArgument | TypeArgument | Unsure of string member IsNoTypeArgument: bool member IsTypeArgument: bool member IsUnsure: bool

Type something to start searching.