@Test public void test_descriptor() { DefaultSensorDescriptor sensorDescriptor = new DefaultSensorDescriptor(); sensor.describe(sensorDescriptor); assertThat(sensorDescriptor.name()).isEqualTo("CSS Rules"); assertThat(sensorDescriptor.languages()).isEmpty(); assertThat(sensorDescriptor.configurationPredicate()).isNull(); assertThat(sensorDescriptor.ruleRepositories()).containsOnly("css"); }
@Override public void describe(SensorDescriptor descriptor) { descriptor .createIssuesForRuleRepository("css") .name("CSS Rules"); }
CssRuleSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .createIssuesForRuleRepository("css") .name("CSS Rules"); } }
CssRuleSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .createIssuesForRuleRepository("css") .name("CSS Rules"); } CssRuleSensor(
    CheckFactory checkFactory,
    CssAnalyzerBridgeServer cssAnalyzerBridgeServer,
    @Nullable AnalysisWarnings analysisWarnings
  ); }
CssRuleSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .createIssuesForRuleRepository("css") .name("CSS Rules"); } CssRuleSensor(
    CheckFactory checkFactory,
    CssAnalyzerBridgeServer cssAnalyzerBridgeServer,
    @Nullable AnalysisWarnings analysisWarnings
  ); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); static void throwFailFast(SensorContext context, Exception e); static boolean hasCssFiles(SensorContext context); }
CssRuleSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .createIssuesForRuleRepository("css") .name("CSS Rules"); } CssRuleSensor(
    CheckFactory checkFactory,
    CssAnalyzerBridgeServer cssAnalyzerBridgeServer,
    @Nullable AnalysisWarnings analysisWarnings
  ); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); static void throwFailFast(SensorContext context, Exception e); static boolean hasCssFiles(SensorContext context);  }