Code Coverage in .NET Core is tricky if you want to use it in a CI build and/or SonarQube. I blogged about .NET Core, SonarQube and Code Coverage – but this felt like a hack. I did a little more … Continue reading .NET Core Code Coverage done right
How to use SonarCloud pull request analysis, pull request decoration and quality gates in Azure DevOps. Continue reading Use pull request decoration in Azure DevOps with SonarCloud
Right now, there’s no way to fail your pipeline in Azure DevOps (a.k.a Visual Studio Team Services, VSTS) when your SonarQube Quality Gate fails. To do this you have to call the SonarQube REST API from your pipeline. Here is … Continue reading Fail your Azure DevOps pipeline if SonarQube Quality Gate fails
How to get .NET Core Code Analysis to SonarQube including Code Coverage. Continue reading .NET Core, SonarQube and Code Coverage
Most “Clean Code schools” treat it as a kind of personal mastery. You achieve certain skills and levels, learn patterns and practices. But how does Clean Code relate to technical debt in a modern, team oriented DevOps world? Development of … Continue reading Clean Code is a team sport!
SonarQube is a really great solution to monitor and track your technical debt over time. But wouldn’t it be great if the developer could already see in Visual Studio the impact that his commit will have to the sonar dashboard? If you use Visual Studio 2015 and the C# Plugin for SonarQube you can do this with the extension SonarLint. The extension depends on the latest version of the C# Plugin – so make sure that you have the latest version (5.2) installed. In Visual Studio install the extension in the “Extensions and Updated” dialog. This adds a new Tile ‘SonarQube’ … Continue reading Use SonarLint to work on your technical debt in Visual Studio
Since the last update to TFS we also have the build steps available to easily integrate SonarQube in your Visual Studio CI process. If you don’t have a SonarQube instance running you can set up one in Azure in nearly no time. Set up service endpoint for SonarQube First you have to set up a service endpoint for your SonarQube instance in TFS or VSTS. Go to the settings of your project (“manage project”), go to services and click “New Service Endpoint”. Select “Generic” and enter the URL to your SonarQube instance and the credentials to connect with. Add and … Continue reading Integrate SonarQube in your TFS or VSTS Build
If you have installed and integrated SonarQube once in TFS 2012 you know it was really painful. But a lot of things have changed and now it’s really easy to setup a new SonarQube instance in Azure and integrate it into you build process and in Visual Studio. I did it this week and it was really fast and straight forward. Setup a machine in Azure I wanted to have a machine for trainings and demos. That’s why I decided to use SQL Server 2014 on Windows 2012 R2. Like this I can turn the machine on and of easily. … Continue reading Setup SonarQube in Azure VM