2

I would like to know if it is possible to add custom code analyzer for F# like you can for C# / VB# with Roslyn? Are there some frameworks/projects I can leverage to do it?

In addition, I would like to have an integration with Visual Studio to see errors from the analyzer in the code editor.

1
  • 1
    search for F# Analyzers Commented Dec 5, 2024 at 19:11

1 Answer 1

3

AFAIK, there is no way to do this. F# currently is not supported by Roslyn, so you will need to do everything including integration with VS yourself.

You can look how the parsing of text is done with this SO question: Parse a text-string to F#-code

I would also look into existing F# projects like Fantomas to see how they parse code:

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.