@Test void no_report_path_set() throws IOException { List<ExternalIssue> externalIssues = execute(null); assertThat(externalIssues).isEmpty(); assertThat(logTester.logs()).isEmpty(); }
@Override public void execute(SensorContext context) { List<File> reportFiles = ExternalReportProvider.getReportFiles(context, REPORT_PROPERTY_KEY); reportFiles.forEach(report -> importIfExist(LINTER_NAME, context, report, PmdSensor::importReport)); }
PmdSensor implements Sensor { @Override public void execute(SensorContext context) { List<File> reportFiles = ExternalReportProvider.getReportFiles(context, REPORT_PROPERTY_KEY); reportFiles.forEach(report -> importIfExist(LINTER_NAME, context, report, PmdSensor::importReport)); } }
PmdSensor implements Sensor { @Override public void execute(SensorContext context) { List<File> reportFiles = ExternalReportProvider.getReportFiles(context, REPORT_PROPERTY_KEY); reportFiles.forEach(report -> importIfExist(LINTER_NAME, context, report, PmdSensor::importReport)); }  }
PmdSensor implements Sensor { @Override public void execute(SensorContext context) { List<File> reportFiles = ExternalReportProvider.getReportFiles(context, REPORT_PROPERTY_KEY); reportFiles.forEach(report -> importIfExist(LINTER_NAME, context, report, PmdSensor::importReport)); }  @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); }
PmdSensor implements Sensor { @Override public void execute(SensorContext context) { List<File> reportFiles = ExternalReportProvider.getReportFiles(context, REPORT_PROPERTY_KEY); reportFiles.forEach(report -> importIfExist(LINTER_NAME, context, report, PmdSensor::importReport)); }  @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); static final String REPORT_PROPERTY_KEY; static final String LINTER_KEY; static final ExternalRuleLoader RULE_LOADER; }