Lint tool for F#
327
stars
1,143
commits
F#
primary language
Sep 2, 2026
updated
FSharpLint is a static analysis tool for F#. Like many other software linters, it analyzes your source code (using both typed and untyped syntax trees) and highlights any violations of defined F# coding rules. There are various kinds of rules:
fantomas).The tool is configurable via JSON and can be run as a console app or as an MSBuild task. It also provides an interface for easy integration into other software.
The project aims to let the user know of problems through matching user defined hints a la HLint, and also by using custom rules written in F# similar to the rules in Mascot and StyleCop.
The tool in use (running as an MSBuild task with TreatWarningsAsErrors set to true):

FSharpLint can be used in several ways:
The docs contain an overview of the tool and how to use it, including a list of the available rules for linting.
| Package | Latest Stable Version | Latest Version (including Pre-Releases) |
|---|---|---|
| dotnet tool | ||
| API |
make to build (which executes the Build target from the FAKE-based build script)make checkmake docsdotnet tool restore to install all developer tools required to build the projectmake to build the default target of the build scriptmake docscd docs and start Fornax in watch mode dotnet fornax watchlocalhost:8080 and will be regenerated on every file saveBug reports, feature requests, and pull requests are very welcome! Please read the Contribution Guidelines to get started.
The project is licensed under MIT. For more information on the license see the LICENSE file.
The default maintainer account for projects under "fsprojects" is @fsprojectsgit - F# Community Project Incubation Space (repo management)
(top 30 of 47)
F#
99.9%
Lint tool for F#
327
stars
1,143
commits
F#
primary language
Sep 2, 2026
updated
FSharpLint is a static analysis tool for F#. Like many other software linters, it analyzes your source code (using both typed and untyped syntax trees) and highlights any violations of defined F# coding rules. There are various kinds of rules:
fantomas).The tool is configurable via JSON and can be run as a console app or as an MSBuild task. It also provides an interface for easy integration into other software.
The project aims to let the user know of problems through matching user defined hints a la HLint, and also by using custom rules written in F# similar to the rules in Mascot and StyleCop.
The tool in use (running as an MSBuild task with TreatWarningsAsErrors set to true):

FSharpLint can be used in several ways:
The docs contain an overview of the tool and how to use it, including a list of the available rules for linting.
| Package | Latest Stable Version | Latest Version (including Pre-Releases) |
|---|---|---|
| dotnet tool | ||
| API |
make to build (which executes the Build target from the FAKE-based build script)make checkmake docsdotnet tool restore to install all developer tools required to build the projectmake to build the default target of the build scriptmake docscd docs and start Fornax in watch mode dotnet fornax watchlocalhost:8080 and will be regenerated on every file saveBug reports, feature requests, and pull requests are very welcome! Please read the Contribution Guidelines to get started.
The project is licensed under MIT. For more information on the license see the LICENSE file.
The default maintainer account for projects under "fsprojects" is @fsprojectsgit - F# Community Project Incubation Space (repo management)
(top 30 of 47)
F#
99.9%