* @param dashboardUrl
* The Sonar dashboard URL to include in the result message
* @return the sonar analysis result
*/
public SonarAnalysisResult getResult(SensorContext context, String dashboardUrl) {
SonarAnalysisStatus status = SonarAnalysisStatus.NO_PROBLEMS;
StringBuilder messageBuilder = new StringBuilder("Sonar analysis (").append(dashboardUrl).append("):\n");
List<Measure> errors = getErrors(context);
List<Measure> warnings = getWarnings(context);