@Test public void should_have_descriptor() throws Exception { DefaultSensorDescriptor descriptor = new DefaultSensorDescriptor(); createSensor().describe(descriptor); assertThat(descriptor.name()).isEqualTo("TypeScript analysis"); assertThat(descriptor.languages()).containsOnly("ts"); assertThat(descriptor.type()).isEqualTo(Type.MAIN); }
@Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(TypeScriptLanguage.KEY) .name("TypeScript analysis") .onlyOnFileType(Type.MAIN); }
TypeScriptSensor extends AbstractEslintSensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(TypeScriptLanguage.KEY) .name("TypeScript analysis") .onlyOnFileType(Type.MAIN); } }
TypeScriptSensor extends AbstractEslintSensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(TypeScriptLanguage.KEY) .name("TypeScript analysis") .onlyOnFileType(Type.MAIN); } TypeScriptSensor(TypeScriptChecks typeScriptChecks, NoSonarFilter noSonarFilter,
                          FileLinesContextFactory fileLinesContextFactory,
                          EslintBridgeServer eslintBridgeServer,
                          TempFolder tempFolder);  TypeScriptSensor(TypeScriptChecks typeScriptChecks, NoSonarFilter noSonarFilter,
                          FileLinesContextFactory fileLinesContextFactory,
                          EslintBridgeServer eslintBridgeServer,
                          @Nullable AnalysisWarnings analysisWarnings,
                          TempFolder tempFolder); }
TypeScriptSensor extends AbstractEslintSensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(TypeScriptLanguage.KEY) .name("TypeScript analysis") .onlyOnFileType(Type.MAIN); } TypeScriptSensor(TypeScriptChecks typeScriptChecks, NoSonarFilter noSonarFilter,
                          FileLinesContextFactory fileLinesContextFactory,
                          EslintBridgeServer eslintBridgeServer,
                          TempFolder tempFolder);  TypeScriptSensor(TypeScriptChecks typeScriptChecks, NoSonarFilter noSonarFilter,
                          FileLinesContextFactory fileLinesContextFactory,
                          EslintBridgeServer eslintBridgeServer,
                          @Nullable AnalysisWarnings analysisWarnings,
                          TempFolder tempFolder); @Override void describe(SensorDescriptor descriptor); }
TypeScriptSensor extends AbstractEslintSensor { @Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(TypeScriptLanguage.KEY) .name("TypeScript analysis") .onlyOnFileType(Type.MAIN); } TypeScriptSensor(TypeScriptChecks typeScriptChecks, NoSonarFilter noSonarFilter,
                          FileLinesContextFactory fileLinesContextFactory,
                          EslintBridgeServer eslintBridgeServer,
                          TempFolder tempFolder);  TypeScriptSensor(TypeScriptChecks typeScriptChecks, NoSonarFilter noSonarFilter,
                          FileLinesContextFactory fileLinesContextFactory,
                          EslintBridgeServer eslintBridgeServer,
                          @Nullable AnalysisWarnings analysisWarnings,
                          TempFolder tempFolder); @Override void describe(SensorDescriptor descriptor);  }