FSharp.PureAnalyzer
0.3.2
dotnet add package FSharp.PureAnalyzer --version 0.3.2
NuGet\Install-Package FSharp.PureAnalyzer -Version 0.3.2
<PackageReference Include="FSharp.PureAnalyzer" Version="0.3.2"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="FSharp.PureAnalyzer" Version="0.3.2" />
<PackageReference Include="FSharp.PureAnalyzer"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add FSharp.PureAnalyzer --version 0.3.2
#r "nuget: FSharp.PureAnalyzer, 0.3.2"
#:package FSharp.PureAnalyzer@0.3.2
#addin nuget:?package=FSharp.PureAnalyzer&version=0.3.2
#tool nuget:?package=FSharp.PureAnalyzer&version=0.3.2
FSharp.PureAnalyzer
F# analyzer that classifies definitions as pure or impure using a known-pure method set (BCL + FSharp.Core surface).
| Diagnostic | Meaning |
|---|---|
| PURE002 | Definition is not transitively pure → editor impure badge |
| PURE003 | Definition is transitively pure → editor pure badge |
| PURE001 | Call-site hint (no end-of-line badge) |
Install (NuGet)
dotnet add package FSharp.PureAnalyzer
Or Paket:
nuget FSharp.PureAnalyzer
The package ships the analyzer under analyzers/dotnet/fs/, which Ionide / fsharp-analyzers discover when FSharp.analyzersPath includes your package restore location (or ~/.nuget/packages/fsharp.pureanalyzer).
Local dev: install / refresh this checkout
bash FSharp.PureAnalyzer/update-analyzer.sh
Packs the current tree and installs it into the NuGet global packages folder (same layout as dotnet add package). Reload the VS Code window afterward so Ionide picks up the new DLL.
Ionide settings
{
"FSharp.enableAnalyzers": true,
"FSharp.analyzersPath": [
"analyzers",
"packages/Analyzers",
"~/.nuget/packages/fsharp.pureanalyzer"
]
}
Pair with the F# Pure Analyzer Decorations VS Code extension for end-of-line pure/impure labels.
More
- Repo: https://github.com/e-St/fspure
- Consumer guide: see the root README
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.