Hello Peeter Piegaze,
This is the screenshot of my analysis scope settings :
and a example of the code where the @SONAR_STOP
and @SONAR_START
comments are embedded :
/**
* Close the container.
*/
public static void shutdown() {
if (postgresContainer != null) { // @SONAR_STOP@
postgresContainer.close();
postgresContainer = null;
}
} // @SONAR_START@
I also tried this code but it didn’t work:
/**
* Close the container.
*/
public static void shutdown() {
// @SONAR_STOP@
if (postgresContainer != null) {
postgresContainer.close();
postgresContainer = null;
}
}
// @SONAR_START@
Thank you for your help.