All the .cs files are generating issue exclusions due to which code coverage was very less i.e 0.5%
We have tried implementing sonar through VSO build task in “manually provide configuration” mode and also in “Integreate in MSbuild” mode. In both the cases the .cs files are not scanned and my code coverage is very less.
In addition to that,We have sonar tasks installed and enabled for build definition. what we are seeing is that the quality profiles are being stopped for one build run and it is again started using the quality profiles for the next run automatically. We are consistently seeing the same behavior for the alternate build runs.
It’s not clear to me what your problem is. Issue exclusions and code coverage have no relationship to each other.
Also, it is not possible to “stop” a quality profile. However, it is much easier to deal with one problem per thread, so if you’d like to pursue this “In addition” question, it would be simpler all around if you opened a new thread for it, and only provided further detail on your primary question here.
Hi Ann,
Thank you for your answer, “Ignore Issues on Files” property is empty in our sonarqube instance. Another example of exclusion log this time javascript :
I’m not sure what to tell you. In my test, the “generating issue exclusions” log lines were added after I defined issue exclusions. These can be defined through the UI at the global level and at the project level. They can also be defined in analysis properties, although that’s tricky to get right.