0

I am coming from a native iOS / Android development background. I am looking for some command line tools that would allow to perform static code analysis on our Xamarin project.

Are you aware of such tools? I have found Gendarme but it seems that it hasn't been updated in a while so I am not sure how actual it is.

Also I have found MonoDevelop.StyleCop which seems to be an add on to Xamarin Studio (although we use Visual Studio for Mac - but it might just work) - but I can't figure our how you can run it from the command line.

What would be your approach into integrating static code analysis in your Xamarin Project Continuous Integration?

Thank you!

EDIT: I'm using macOS so I am interested in tools that run on macOS

Cosmin
  • 2,840
  • 5
  • 32
  • 50

2 Answers2

0

Xamarin is basically .NET written with C# or F# so you can use nearly all code analysis tools available for those languages. For a great list see: What static analysis tools are available for C#?

tequila slammer
  • 2,821
  • 1
  • 18
  • 25
0

I checked the project Xamarin.Forms using static analyzer PVS-Studio and wrote the article with the results of the check: "Microsoft opened the source code of Xamarin.Forms. We couldn't miss a chance to check it with PVS-Studio". The check of Xamarin.Forms was performed for Windows (we don't have the version for macOS yet), but I still recommend you to write us to discuss this question. We have just started to make an adoption for macOS.

Sergey Vasiliev
  • 803
  • 8
  • 19