@Test public void should_have_descriptor() throws Exception { DefaultSensorDescriptor descriptor = new DefaultSensorDescriptor(); createSensor().describe(descriptor); assertThat(descriptor.name()).isEqualTo("JavaScript analysis"); assertThat(descriptor.languages()).containsOnly("js"); assertThat(descriptor.type()).isEqualTo(Type.MAIN); }
@Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(JavaScriptLanguage.KEY) .name("JavaScript analysis") .onlyOnFileType(Type.MAIN); }
JavaScriptEslintBasedSensor extends AbstractEslintSensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(JavaScriptLanguage.KEY) .name("JavaScript analysis") .onlyOnFileType(Type.MAIN); } }
JavaScriptEslintBasedSensor extends AbstractEslintSensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(JavaScriptLanguage.KEY) .name("JavaScript analysis") .onlyOnFileType(Type.MAIN); } JavaScriptEslintBasedSensor(JavaScriptChecks checks, NoSonarFilter noSonarFilter,
                                     FileLinesContextFactory fileLinesContextFactory,
                                     EslintBridgeServer eslintBridgeServer, TempFolder folder);  JavaScriptEslintBasedSensor(JavaScriptChecks checks, NoSonarFilter noSonarFilter,
                                     FileLinesContextFactory fileLinesContextFactory, EslintBridgeServer eslintBridgeServer,
                                     @Nullable AnalysisWarnings analysisWarnings, TempFolder folder); }
JavaScriptEslintBasedSensor extends AbstractEslintSensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(JavaScriptLanguage.KEY) .name("JavaScript analysis") .onlyOnFileType(Type.MAIN); } JavaScriptEslintBasedSensor(JavaScriptChecks checks, NoSonarFilter noSonarFilter,
                                     FileLinesContextFactory fileLinesContextFactory,
                                     EslintBridgeServer eslintBridgeServer, TempFolder folder);  JavaScriptEslintBasedSensor(JavaScriptChecks checks, NoSonarFilter noSonarFilter,
                                     FileLinesContextFactory fileLinesContextFactory, EslintBridgeServer eslintBridgeServer,
                                     @Nullable AnalysisWarnings analysisWarnings, TempFolder folder); @Override void describe(SensorDescriptor descriptor); }
JavaScriptEslintBasedSensor extends AbstractEslintSensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(JavaScriptLanguage.KEY) .name("JavaScript analysis") .onlyOnFileType(Type.MAIN); } JavaScriptEslintBasedSensor(JavaScriptChecks checks, NoSonarFilter noSonarFilter,
                                     FileLinesContextFactory fileLinesContextFactory,
                                     EslintBridgeServer eslintBridgeServer, TempFolder folder);  JavaScriptEslintBasedSensor(JavaScriptChecks checks, NoSonarFilter noSonarFilter,
                                     FileLinesContextFactory fileLinesContextFactory, EslintBridgeServer eslintBridgeServer,
                                     @Nullable AnalysisWarnings analysisWarnings, TempFolder folder); @Override void describe(SensorDescriptor descriptor);  }