@Test public void testDescriptor() { DefaultSensorDescriptor descriptor = new DefaultSensorDescriptor(); sensor.describe(descriptor); assertThat(descriptor.name()).isEqualTo("HTML"); assertThat(descriptor.languages()).isEmpty(); }
@Override public void describe(SensorDescriptor descriptor) { descriptor .name(HtmlConstants.LANGUAGE_NAME) .onlyOnFileType(InputFile.Type.MAIN); }
HtmlSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .name(HtmlConstants.LANGUAGE_NAME) .onlyOnFileType(InputFile.Type.MAIN); } }
HtmlSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .name(HtmlConstants.LANGUAGE_NAME) .onlyOnFileType(InputFile.Type.MAIN); } HtmlSensor(NoSonarFilter noSonarFilter, FileLinesContextFactory fileLinesContextFactory, CheckFactory checkFactory); }
HtmlSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .name(HtmlConstants.LANGUAGE_NAME) .onlyOnFileType(InputFile.Type.MAIN); } HtmlSensor(NoSonarFilter noSonarFilter, FileLinesContextFactory fileLinesContextFactory, CheckFactory checkFactory); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext sensorContext); }
HtmlSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .name(HtmlConstants.LANGUAGE_NAME) .onlyOnFileType(InputFile.Type.MAIN); } HtmlSensor(NoSonarFilter noSonarFilter, FileLinesContextFactory fileLinesContextFactory, CheckFactory checkFactory); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext sensorContext);  }