@Test public void sensor_descriptor() { DefaultSensorDescriptor descriptor = new DefaultSensorDescriptor(); createSensor().describe(descriptor); assertThat(descriptor.name()).isEqualTo("PHP sensor"); assertThat(descriptor.languages()).containsOnly("php"); assertThat(descriptor.type()).isEqualTo(Type.MAIN); }
@Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(Php.KEY) .name("PHP sensor") .onlyOnFileType(Type.MAIN); }
PHPSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(Php.KEY) .name("PHP sensor") .onlyOnFileType(Type.MAIN); } }
PHPSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(Php.KEY) .name("PHP sensor") .onlyOnFileType(Type.MAIN); } PHPSensor(FileLinesContextFactory fileLinesContextFactory,
    CheckFactory checkFactory, NoSonarFilter noSonarFilter);  PHPSensor(FileLinesContextFactory fileLinesContextFactory,
    CheckFactory checkFactory, NoSonarFilter noSonarFilter, @Nullable PHPCustomRuleRepository[] customRuleRepositories);   PHPSensor(FileLinesContextFactory fileLinesContextFactory, PHPChecks checks, NoSonarFilter noSonarFilter); }
PHPSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(Php.KEY) .name("PHP sensor") .onlyOnFileType(Type.MAIN); } PHPSensor(FileLinesContextFactory fileLinesContextFactory,
    CheckFactory checkFactory, NoSonarFilter noSonarFilter);  PHPSensor(FileLinesContextFactory fileLinesContextFactory,
    CheckFactory checkFactory, NoSonarFilter noSonarFilter, @Nullable PHPCustomRuleRepository[] customRuleRepositories);   PHPSensor(FileLinesContextFactory fileLinesContextFactory, PHPChecks checks, NoSonarFilter noSonarFilter); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); @Override String toString(); }
PHPSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(Php.KEY) .name("PHP sensor") .onlyOnFileType(Type.MAIN); } PHPSensor(FileLinesContextFactory fileLinesContextFactory,
    CheckFactory checkFactory, NoSonarFilter noSonarFilter);  PHPSensor(FileLinesContextFactory fileLinesContextFactory,
    CheckFactory checkFactory, NoSonarFilter noSonarFilter, @Nullable PHPCustomRuleRepository[] customRuleRepositories);   PHPSensor(FileLinesContextFactory fileLinesContextFactory, PHPChecks checks, NoSonarFilter noSonarFilter); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); @Override String toString();  }