FSharp.LintKit
0.1.0-preview
This is a prerelease version of FSharp.LintKit.
dotnet tool install --global FSharp.LintKit --version 0.1.0-preview
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local FSharp.LintKit --version 0.1.0-preview
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=FSharp.LintKit&version=0.1.0-preview&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package FSharp.LintKit --version 0.1.0-preview
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FSharp.LintKit CLI
A command-line tool for running custom F# lint analyzers with dynamic DLL loading support.
Installation
dotnet tool install -g FSharp.LintKit
Quick Start
# Run analyzer on a directory
dotnet fsharplintkit --analyzers path/to/analyzer.dll --target ./src
# Run on specific file
dotnet fsharplintkit --analyzers analyzer.dll --target MyFile.fs
# SARIF output for CI/CD
dotnet fsharplintkit --analyzers analyzer.dll --target ./src --format sarif
Usage
Basic Command
fsharplintkit --analyzers <analyzer-dll> --target <path>
Options
--analyzers <path>
- Path to analyzer DLL (can be specified multiple times)--target <path>
- Target to analyze (file, directory, .fsproj, or .sln)--format <format>
- Output format:text
(default) orsarif
--verbose
- Enable detailed output--quiet
- Minimal output
Multiple Analyzers
fsharplintkit --analyzers rules1.dll --analyzers rules2.dll --target ./src
Target Types
- Directory:
--target ./src
(recursively finds .fs files) - Solution:
--target MyProject.sln
- Project:
--target MyProject.fsproj
- Single file:
--target MyFile.fs
Creating Custom Analyzers
To create your own analyzer rules, install the project templates:
dotnet new install FSharp.LintKit.Templates
dotnet new fsharplintkit-analyzer -n MyCustomRules
See the main repository for detailed documentation on creating custom analyzers with AI assistance.
Exit Codes
0
- No violations found1
- Violations found2
- Error occurred
Requirements
- .NET 9.0 or later
- Custom analyzer DLLs built with FSharp.Analyzers.SDK
Links
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
Version | Downloads | Last Updated |
---|---|---|
0.1.0-preview | 127 | 7/8/2025 |