This repo shows how to use F# Analyzer in your F# project. I'm using sample analyzer I've published - FSharp.Analyzers.Sample
that is warning about any usage of Option.Value
call
- Restore packages with
paket restore
- Install
fsharp-analyzers
tool as global .Net tool -dotnet tool install fsharp-analyzers -g
- Run tool with
--project
argument -fsharp-analyzers --project .\AnalyzersTest.fsproj --verbose
- Requires Ionide 4.4.0
- Open VSCode
- Go to settings and set
FSharp.enableAnalyzers
totrue
- Reload window
- Using Paket add analyzer to the analyzers group (don't set
storage: none
- we want to install it locally) - Run
paket install
- Install
fsharp-analyzers
tool as global .Net tool -dotnet tool install fsharp-analyzers -g
- Run tool with
--project
argument -fsharp-analyzers --project PATH_TO_YOUR_FSPROJ --verbose
- Blog post introducing F# Analyzers - https://medium.com/lambda-factory/introducing-f-analyzers-772487889429
- FSharp.Analyzers.SDK project (SDK for creating Analyzers, and
fsharp-analyzers
CLI tool) - https://github.com/ionide/FSharp.Analyzers.SDK - FSharp.Analyzers.Sample (sample analyzer used in this repo) - https://github.com/Krzysztof-Cieslak/FSharp.Analyzers.Sample
The project is hosted on GitHub where you can report issues, fork the project and submit pull requests.
The library is available under MIT license, which allows modification and redistribution for both commercial and non-commercial purposes.