G-Research.FSharp.Analyzers 0.20.0

dotnet add package G-Research.FSharp.Analyzers --version 0.20.0
                    
NuGet\Install-Package G-Research.FSharp.Analyzers -Version 0.20.0
                    
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="G-Research.FSharp.Analyzers" Version="0.20.0">
  <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="G-Research.FSharp.Analyzers" Version="0.20.0" />
                    
Directory.Packages.props
<PackageReference Include="G-Research.FSharp.Analyzers">
  <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 G-Research.FSharp.Analyzers --version 0.20.0
                    
#r "nuget: G-Research.FSharp.Analyzers, 0.20.0"
                    
#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 G-Research.FSharp.Analyzers@0.20.0
                    
#: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=G-Research.FSharp.Analyzers&version=0.20.0
                    
Install as a Cake Addin
#tool nuget:?package=G-Research.FSharp.Analyzers&version=0.20.0
                    
Install as a Cake Tool

G-Research Fsharp Analyzers

GitHub Workflow Status (event) Nuget (with prereleases)

A curated set of Ionide SDK analyzers for F#.

Usage

To run any analyzer you need to find a way to download the NuGet package locally. At the time of writing there is no standard way to do this, one way this can be done is by using the <PackageDownload>

<Project Sdk="Microsoft.Build.NoTargets/1.0.80"> 

  <PropertyGroup>
    <IsPackable>false</IsPackable>
    <RestorePackagesPath>./.analyzerpackages/</RestorePackagesPath> 
     
    <TargetFramework>net6.0</TargetFramework> 
    <DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder> 
    <AutomaticallyUseReferenceAssemblyPackages>false</AutomaticallyUseReferenceAssemblyPackages> 
  </PropertyGroup>

  <ItemGroup>
    <PackageDownload Include="G-Research.FSharp.Analyzers" Version="[0.1.4]" />
  </ItemGroup>

</Project>

Running dotnet restore will download this locally to ./.analyzerpackages.

Then you need to install the fsharp-analyzers tool.

Next you can run dotnet fsharp-analyzers --project YourProject.fsproj --analyzers-path ./.analyzerpackages/g-research.fsharp.analyzers/0.1.4/lib/net6.0

Please checkout the documentation over at FSharp.Analyzers.SDK.

Contributing

We welcome new contributors! We'll happily receive PRs for bug fixes or small changes. If you're contemplating something larger please get in touch first by opening a GitHub Issue describing the problem and how you propose to solve it.

Scaffold new analyzer

Run

dotnet fsi build.fsx -- -p NewAnalyzer

to scaffold a new analyzer.

License

Copyright © 2023 G-Research

Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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.20.0 330 11/12/2025
0.19.0 778 10/20/2025
0.18.0 1,207 8/27/2025
0.17.0 4,617 7/13/2025
0.16.0 271 7/1/2025
0.15.0 716 5/18/2025
0.14.0 634 4/1/2025
0.13.0 30,330 2/15/2025
0.12.1 5,491 1/8/2025
0.12.0 15,770 11/20/2024
0.11.0 19,298 8/19/2024
0.10.0 2,638 5/17/2024
0.9.3 15,520 2/16/2024
0.9.2 287 2/16/2024
0.9.1 300 2/15/2024
0.9.0 374 2/15/2024
0.8.0 22,537 1/30/2024
0.7.0 3,456 1/10/2024
0.6.0 808 12/20/2023
0.5.1 534 12/6/2023
0.5.0 291 12/4/2023
0.4.0 3,042 11/23/2023
0.3.1 474 11/15/2023
0.3.0 222 11/14/2023
0.2.0 194 11/10/2023
0.1.6 799 10/26/2023
0.1.5 427 10/18/2023
0.1.4 281 10/16/2023
0.1.3 299 10/12/2023
0.1.2 215 10/10/2023
0.1.1 237 10/10/2023
0.1.0 302 10/6/2023

### Changed

- Update FSharp.Analyzers.SDK to `0.34.1`. [#98](https://github.com/G-Research/fsharp-analyzers/pull/98)