@Test public void sensor_descriptor() { activeRules = (new ActiveRulesBuilder()).build(); DefaultSensorDescriptor descriptor = new DefaultSensorDescriptor(); sensor().describe(descriptor); assertThat(descriptor.name()).isEqualTo("OpenAPI Scanner Sensor"); assertThat(descriptor.languages()).containsOnly("openapi"); assertThat(descriptor.type()).isEqualTo(InputFile.Type.MAIN); }
@Override public void describe(SensorDescriptor descriptor) { descriptor.name("OpenAPI Scanner Sensor") .onlyOnFileType(InputFile.Type.MAIN) .onlyOnLanguage(OpenApi.KEY); }
OpenApiScannerSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor.name("OpenAPI Scanner Sensor") .onlyOnFileType(InputFile.Type.MAIN) .onlyOnLanguage(OpenApi.KEY); } }
OpenApiScannerSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor.name("OpenAPI Scanner Sensor") .onlyOnFileType(InputFile.Type.MAIN) .onlyOnLanguage(OpenApi.KEY); } OpenApiScannerSensor(CheckFactory checkFactory, FileLinesContextFactory fileLinesContextFactory, NoSonarFilter noSonarFilter);  OpenApiScannerSensor(CheckFactory checkFactory, FileLinesContextFactory fileLinesContextFactory, NoSonarFilter noSonarFilter, @Nullable OpenApiCustomRuleRepository[] customRuleRepositories); }
OpenApiScannerSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor.name("OpenAPI Scanner Sensor") .onlyOnFileType(InputFile.Type.MAIN) .onlyOnLanguage(OpenApi.KEY); } OpenApiScannerSensor(CheckFactory checkFactory, FileLinesContextFactory fileLinesContextFactory, NoSonarFilter noSonarFilter);  OpenApiScannerSensor(CheckFactory checkFactory, FileLinesContextFactory fileLinesContextFactory, NoSonarFilter noSonarFilter, @Nullable OpenApiCustomRuleRepository[] customRuleRepositories); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); void scanFiles(SensorContext context, FilePredicates p, String[] pathPatterns, boolean isV2); }
OpenApiScannerSensor implements Sensor { @Override public void describe(SensorDescriptor descriptor) { descriptor.name("OpenAPI Scanner Sensor") .onlyOnFileType(InputFile.Type.MAIN) .onlyOnLanguage(OpenApi.KEY); } OpenApiScannerSensor(CheckFactory checkFactory, FileLinesContextFactory fileLinesContextFactory, NoSonarFilter noSonarFilter);  OpenApiScannerSensor(CheckFactory checkFactory, FileLinesContextFactory fileLinesContextFactory, NoSonarFilter noSonarFilter, @Nullable OpenApiCustomRuleRepository[] customRuleRepositories); @Override void describe(SensorDescriptor descriptor); @Override void execute(SensorContext context); void scanFiles(SensorContext context, FilePredicates p, String[] pathPatterns, boolean isV2);  }