FSharp.PureAnalyzer 0.3.2

dotnet add package FSharp.PureAnalyzer --version 0.3.2
                    
NuGet\Install-Package FSharp.PureAnalyzer -Version 0.3.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FSharp.PureAnalyzer" Version="0.3.2">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FSharp.PureAnalyzer" Version="0.3.2" />
                    
Directory.Packages.props
<PackageReference Include="FSharp.PureAnalyzer">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FSharp.PureAnalyzer --version 0.3.2
                    
#r "nuget: FSharp.PureAnalyzer, 0.3.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FSharp.PureAnalyzer@0.3.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FSharp.PureAnalyzer&version=0.3.2
                    
Install as a Cake Addin
#tool nuget:?package=FSharp.PureAnalyzer&version=0.3.2
                    
Install as a Cake Tool

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

There are no supported framework assets in this package.

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.

Version Downloads Last Updated
0.3.2 48 7/31/2026
0.1.0 37 7/31/2026