fsharp support for sonar

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

fsharp support for sonar

Jorge Costa
Hi guys,

I would like to contribute a plugin to support the F# in Sonar and host it in the forge, repository is here https://github.com/jmecosta/sonar-fsharp-plugin.

Descriptions:

- it uses a Fsharp compiler service to construct the f# ast.
- Supports current 0.1.16 FSharpLint, with all rules and relevant configurations.
- provides basic metrics, LOC, complexity, file complexity dist, fun complexity dist, Classes, accessors, functions.
- provides test metrics, coverage and unit test
- provides sqale model for fsharplint


Implementation:
- Ive reuse the csharp-plugin methodology, so ive created a f# application (runner) that will create all metrics and run FSharpLint. The same input/ouputs have been reused from the csharp-plugin
- Reuse also the test org.codehaus.sonar.dotnet.tests to include test metrics

Todo:
- figure out how to gather duplication tokens
- include fxcop library (had problems with this)

Can someone please review this, and access if we can have this in the update center

thanks in advance




Best Regards
Jorge Costa
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: fsharp support for sonar

Jorge Costa
ive figure out the duplications, used the f# http://fsharp.github.io/FSharp.Compiler.Service/tokenizer.html and seems to work nicely

can someone comment on this: you can test it if you like https://github.com/jmecosta/sonar-fsharp-plugin/releases/download/0.9/sonar-fsharp-plugin-0.9-SNAPSHOT.jar
Best Regards
Jorge Costa
Loading...