This video will explain how to setup SonarQube in docker and perform static code analysis for MuleSoft applications.
During video we will see that how to build SonarQube container using docker.
1.) Pull SonarQube Docker Image
docker pull fperezpa/mulesonarqube:7.7.3
2.) Build and Run SonarQube as a Docker Container
docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 fperezpa/mulesonarqube:7.7.3
3.) Add Plugin into you application POM.XML
Plugin details can be found in comments
4.) Run Sonar Static Code Analysis using Maven
mvn sonar:sonar -Dsonar.host.url=http://localhost:9000 -Dsonar.sources=.\src