Sonarqube is not showing code coverage after running

I found the solution – The maven plugin I have included has configuration of Jacoco’s destfile and datafile as ${basedir}/target/coverage-reports/jacoco-unit.exec but by default sonar reads at ${basedir}/target/jacoco.exec. I changed the default at http://localhost:9000/settings?category=java Ref: Sonar Code Coverage Couldn’t find the working reference link. Here is aux link: Baeldung Sonar and jacoco

How to disable warning on Sonar: Hide Utility Class Constructor?

If this class is only a utility class, you should make the class final and define a private constructor: public final class FilePathHelper { private FilePathHelper() { //not called } } This prevents the default parameter-less constructor from being used elsewhere in your code. Additionally, you can make the class final, so that it can’t … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)