Question

I am attempting to get sonar to work with StyleCop 4.7 and am having a few issues.

1) When I set the location of StyleCop in the Sonar settings, Sonar fails to run and therefor fails my CI builds. It seems that Sonar is unable to find the assemblies that are compiled as part of StyleCop 4.7

2) I do not see a way to get the rules that are available in version 4.7 that are not available in 4.4 . Meaning, I want to enable rules that are avaible in version 4.7 but do not show up as options to enable and prioritize in the quality profiles of sonar.

I am trying to run sonar analysis on a C# project and it successfully runs using the default version of the c# plugins. I am running version 2.13.1 of Sonar. Any help would be greatly appreciated.

Was it helpful?

Solution

For your 1rst problem, I can't help you more if you do not provide an excerpt of the log file. What you can also do is to run the analysis in debug mode ('-X') so that you can find the exact command launched for StyleCop and try to relaunch it manually to get more information about the failure.

For the 2nd problem, until we have updated the StyleCop plugin, you can add the missing rules in Sonar using the guide we put on the Wiki.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top