org.sonar.api.batch.sensor.SensorDescriptor Java Examples
The following examples show how to use
org.sonar.api.batch.sensor.SensorDescriptor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LuaSquidSensor.java From sonar-lua with GNU Lesser General Public License v3.0 | 5 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor .name("Lua") .onlyOnFileType(InputFile.Type.MAIN) .onlyOnLanguage(Lua.KEY); }
Example #2
Source File: CoberturaSensor.java From sonar-lua with GNU Lesser General Public License v3.0 | 5 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor .name("Lua Cobertura") .onlyOnFileType(InputFile.Type.MAIN) .onlyOnLanguage(Lua.KEY); }
Example #3
Source File: EsqlSensor.java From sonar-esql-plugin with Apache License 2.0 | 5 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(EsqlLanguage.KEY) .name("ESQL Squid Sensor") .onlyOnFileType(Type.MAIN); }
Example #4
Source File: CssAnalyzerSensor.java From sonar-css-plugin with GNU Lesser General Public License v3.0 | 5 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(CssLanguage.KEY) .name("CSS Analyzer Sensor") .onlyOnFileType(Type.MAIN); }
Example #5
Source File: LessAnalyzerSensor.java From sonar-css-plugin with GNU Lesser General Public License v3.0 | 5 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(LessLanguage.KEY) .name("Less Analyzer Sensor") .onlyOnFileType(Type.MAIN); }
Example #6
Source File: GherkinSquidSensor.java From sonar-gherkin-plugin with GNU Lesser General Public License v3.0 | 5 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(GherkinLanguage.KEY) .name("Gherkin Squid Sensor") .onlyOnFileType(Type.MAIN); }
Example #7
Source File: FlowSquidSensor.java From sonar-flow-plugin with GNU Lesser General Public License v3.0 | 5 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor.name("Scans flow files"); descriptor.onlyOnLanguage("flow"); descriptor.createIssuesForRuleRepositories(FlowRulesDefinition.REPO_KEY); }
Example #8
Source File: ScssAnalyzerSensor.java From sonar-css-plugin with GNU Lesser General Public License v3.0 | 5 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor .onlyOnLanguage(ScssLanguage.KEY) .name("SCSS Analyzer Sensor") .onlyOnFileType(Type.MAIN); }
Example #9
Source File: AnsibleSensorTest.java From sonar-ansible with Apache License 2.0 | 4 votes |
@Override public SensorDescriptor requireProperty(String... propertyKey) { return this; }
Example #10
Source File: AnsibleSensorTest.java From sonar-ansible with Apache License 2.0 | 4 votes |
@Override public SensorDescriptor createIssuesForRuleRepositories(String... repositoryKeys) { return this; }
Example #11
Source File: AnsibleSensorTest.java From sonar-ansible with Apache License 2.0 | 4 votes |
@Override public SensorDescriptor requireProperties(String... propertyKeys) { return this; }
Example #12
Source File: AnsibleSensorTest.java From sonar-ansible with Apache License 2.0 | 4 votes |
@Override public SensorDescriptor global() { return this; }
Example #13
Source File: AnsibleSensorTest.java From sonar-ansible with Apache License 2.0 | 4 votes |
@Override public SensorDescriptor onlyWhenConfiguration(Predicate<Configuration> predicate) { return this; }
Example #14
Source File: EmbeddedCssAnalyzerSensor.java From sonar-css-plugin with GNU Lesser General Public License v3.0 | 4 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor.name("Embedded CSS Analyzer Sensor"); }
Example #15
Source File: CombinedCoverageSensor.java From sonar-ruby-plugin with MIT License | 4 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor.name("Combined SimpleCov and LOC sensor"); descriptor.onlyOnLanguage(Ruby.LANGUAGE_KEY); }
Example #16
Source File: RubocopSensor.java From sonar-ruby-plugin with MIT License | 4 votes |
@Override public void describe(SensorDescriptor desc) { desc .name("Linting sensor for Ruby files") .onlyOnLanguage(Ruby.LANGUAGE_KEY); }
Example #17
Source File: CheckstyleSensor.java From sonar-checkstyle with GNU Lesser General Public License v3.0 | 4 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor.onlyOnLanguage(Java.KEY).name("CheckstyleSensor"); }
Example #18
Source File: ColdFusionSensor.java From sonar-coldfusion with Apache License 2.0 | 4 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor.onlyOnLanguage(ColdFusionPlugin.LANGUAGE_KEY); descriptor.createIssuesForRuleRepository(ColdFusionPlugin.REPOSITORY_KEY); }
Example #19
Source File: LicenseCheckSensor.java From sonarqube-licensecheck with Apache License 2.0 | 4 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor.name("License Check") .createIssuesForRuleRepository(LicenseCheckMetrics.LICENSE_CHECK_KEY); }
Example #20
Source File: CustomChecksSensor.java From sonar-tsql-plugin with GNU General Public License v3.0 | 4 votes |
@Override public void describe(final SensorDescriptor descriptor) { descriptor.name(this.getClass().getSimpleName()).onlyOnLanguage(TSQLLanguage.KEY); }
Example #21
Source File: BaseTsqlSensor.java From sonar-tsql-plugin with GNU General Public License v3.0 | 4 votes |
@Override public void describe(final SensorDescriptor descriptor) { descriptor.name(this.getClass().getSimpleName()).onlyOnLanguage(TSQLLanguage.KEY); }
Example #22
Source File: HtlSensor.java From AEM-Rules-for-SonarQube with Apache License 2.0 | 4 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor .name(Htl.NAME) .onlyOnFileType(Type.MAIN); }
Example #23
Source File: SmellMeasuresSensor.java From qualinsight-plugins-sonarqube-smell with GNU Lesser General Public License v3.0 | 4 votes |
@Override public void describe(final SensorDescriptor descriptor) { descriptor.name(this.getClass() .getSimpleName()); descriptor.onlyOnLanguage(Java.KEY); }
Example #24
Source File: TsLintSensor.java From SonarTsPlugin with MIT License | 4 votes |
@Override public void describe(SensorDescriptor desc) { desc .name("Linting sensor for TypeScript files") .onlyOnLanguage(TypeScriptLanguage.LANGUAGE_KEY); }
Example #25
Source File: CombinedCoverageSensor.java From SonarTsPlugin with MIT License | 4 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor.name("Combined LCOV and LOC sensor"); descriptor.onlyOnLanguage(TypeScriptLanguage.LANGUAGE_KEY); }
Example #26
Source File: CloverSensor.java From sonar-clover with Apache License 2.0 | 4 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor.name("Clover Coverage Analysis"); descriptor.onlyOnLanguages("java", "groovy"); }
Example #27
Source File: AnsibleExtraSensorTest.java From sonar-ansible with Apache License 2.0 | 4 votes |
@Override public SensorDescriptor onlyOnFileType(InputFile.Type type) { return this; }
Example #28
Source File: CloverageSensor.java From sonar-clojure with MIT License | 4 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor.name(PLUGIN_NAME) .onlyOnLanguage(Clojure.KEY); }
Example #29
Source File: EastwoodSensor.java From sonar-clojure with MIT License | 4 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor.name(PLUGIN_NAME) .onlyOnLanguage(Clojure.KEY); }
Example #30
Source File: AncientSensor.java From sonar-clojure with MIT License | 4 votes |
@Override public void describe(SensorDescriptor descriptor) { descriptor.name(PLUGIN_NAME) .onlyOnLanguage(Clojure.KEY); }