Unable to get FxCop report results on SonarQube


Recently I have faced with a problem when FxCop results (for C#) were not shown on SonarQube dashboard. To avoid misunderstandings and exclude issues related to a private project I decided to use sample project provided here: https://github.com/SonarSource/sonar-examples.
Following instructions described in  https://github.com/SonarSource/sonar-examples/blob/master/projects/languages/csharp/README.md I was managed to run sonar-runner and got some results on SonarQube server (code coverage, unit tests details, some other statistics) but didn't notice any details about FxCop running.

Used modified sonar settings (modified some settings of original sonar-project-without-visual-studio-bootstrapper.properties provided in sample) --- ATTACHED.

After obtaining results on SonarQube server (just to make sure that provided sample works properly) I decided to modify Calc class and added one more string:

    public class Calc
        public IntPtr publicPointer1;
        public static int Add(int left, int right)
            return left + right;

According to MSDN documentation FxCop must catch it with rule CA2111: Pointers should not be visible (http://msdn.microsoft.com/en-us/library/ms182306.aspx). As this rule was enabled in my default profile I was expecting to get some warnings/errors and I got it in:   .sonar\com.tideworks.sim_MyLibrary\fxcop-report.xml  --- ATTACHED

The QUESTION is: How to locate FxCop results on SonarQube?

1 comment
Comment actions Permalink

How do you run FxCop analysis?


Please sign in to leave a comment.