public HealthReport getLintHealthReport() { if (lintList != null && lintList.size() > 0) { int ok = 0; for (Lint lint : lintList) { if (!lint.isIgnored()) { if (! lint.isFound()) { ok++; } } else { ok++; } } int score = (int) (100.0 * ok / lintList.size()); return new HealthReport(score, Messages._Job_LintStability(score + "%")); } return null; }
public HealthReport getWeather() { return new HealthReport(round(percent), "Cloud Statistics"); }
public static String getBigImagePath(int score) { HealthReport healthReport = new HealthReport(score, (Localizable)null); return healthReport.getIconUrl("32x32"); }
public static String getSmallImagePath(int score) { HealthReport healthReport = new HealthReport(score, (Localizable)null); return healthReport.getIconUrl("16x16"); }
@Override public HealthReport getBuildHealth() { return new HealthReport(); }
@Override @Exported(name = "healthReport") public List<HealthReport> getBuildHealthReports() { return new ArrayList<>(); }