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.
|
Add the FSharp.Analyzers.Build:
|
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:
|
And invoke:
|
from the command line.
Further reading
To learn more about Ionide F# analyzers, you can read the official Getting started guide.
Multiple items
namespace FSharp
--------------------
namespace Microsoft.FSharp
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>
<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