@Test void test_descriptor() { DefaultSensorDescriptor sensorDescriptor = new DefaultSensorDescriptor(); checkstyleSensor.describe(sensorDescriptor); assertThat(sensorDescriptor.name()).isEqualTo("Import of Checkstyle issues"); assertThat(sensorDescriptor.languages()).containsOnly("java"); ExternalReportTestUtils.assertNoErrorWarnDebugLogs(logTester); }
@Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(CheckstyleSensor.LANGUAGE_KEY) .onlyWhenConfiguration(conf -> conf.hasKey(REPORT_PROPERTY_KEY)) .name("Import of Checkstyle issues"); }
CheckstyleSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(CheckstyleSensor.LANGUAGE_KEY) .onlyWhenConfiguration(conf -> conf.hasKey(REPORT_PROPERTY_KEY)) .name("Import of Checkstyle issues"); } }
CheckstyleSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(CheckstyleSensor.LANGUAGE_KEY) .onlyWhenConfiguration(conf -> conf.hasKey(REPORT_PROPERTY_KEY)) .name("Import of Checkstyle issues"); }  }
CheckstyleSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(CheckstyleSensor.LANGUAGE_KEY) .onlyWhenConfiguration(conf -> conf.hasKey(REPORT_PROPERTY_KEY)) .name("Import of Checkstyle issues"); }  @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); }
CheckstyleSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(CheckstyleSensor.LANGUAGE_KEY) .onlyWhenConfiguration(conf -> conf.hasKey(REPORT_PROPERTY_KEY)) .name("Import of Checkstyle issues"); }  @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; }