Analyzers (but not Roslyn-based) can also be created for F# code using <a href="https://github.com/ionide/FSharp.Analyzers.SDK" rel="nofollow">https://github.com/ionide/FSharp.Analyzers.SDK</a>.<p>Here's a cool example that type checks SQL statements embedded in your code as you go: <a href="https://github.com/Zaid-Ajaj/Npgsql.FSharp.Analyzer" rel="nofollow">https://github.com/Zaid-Ajaj/Npgsql.FSharp.Analyzer</a>
My team wrote an analyzer to prevent use of DateTime.Now and enforce DateTime.UtcNow instead. Helps us prevent weird time bugs. Neat stuff. The code for it took me a while to get used to, lots of strange looking syntax and types.