congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.sonar.api.batch.sensor.internal
Code IndexAdd Tabnine to your IDE (free)

How to use org.sonar.api.batch.sensor.internal

Best Java code snippets using org.sonar.api.batch.sensor.internal (Showing top 20 results out of 315)

origin: SonarSource/sonarqube

@Override
public DefaultSensorDescriptor requireProperty(String... propertyKey) {
 return requireProperties(propertyKey);
}
origin: SonarSource/sonarqube

 public boolean isGlobal() {
  return descriptor.isGlobal();
 }
}
origin: SonarSource/sonarqube

@Override
public void addContextProperty(String key, String value) {
 sensorStorage.storeProperty(key, value);
}
origin: SonarSource/sonarqube

@Override
public String toString() {
 return descriptor.name();
}
origin: SonarSource/sonarqube

@Override
protected void doSave() {
 requireNonNull(this.inputFile, "inputFile is mandatory on AnalysisError");
 storage.store(this);
}
origin: SonarSource/sonarqube

private void addFileToFs(DefaultInputFile inputFile) {
 context.fileSystem().add(inputFile);
}
origin: SonarSource/sonarqube

public <G extends Serializable> Measure<G> measure(String componentKey, Metric<G> metric) {
 return measure(componentKey, metric.key());
}
origin: SonarSource/sonarqube

@Override
public DefaultSensorDescriptor createIssuesForRuleRepository(String... repositoryKey) {
 return createIssuesForRuleRepositories(repositoryKey);
}
origin: SonarSource/sonarqube

@Override
public DefaultSensorDescriptor onlyOnLanguage(String languageKey) {
 return onlyOnLanguages(languageKey);
}
origin: SonarSource/sonarqube

private boolean settingsCondition(DefaultSensorDescriptor descriptor) {
 if (descriptor.configurationPredicate() != null) {
  return descriptor.configurationPredicate().test(config);
 }
 return true;
}
origin: SonarSource/sonarqube

public static SensorContextTester create(Path moduleBaseDir) {
 return new SensorContextTester(moduleBaseDir);
}
origin: SonarSource/sonarqube

@Override
public void addContextProperty(String key, String value) {
 sensorStorage.storeProperty(key, value);
}
origin: SonarSource/sonarqube

/**
 * Default value is the version of this API at compilation time. You can override it
 * using {@link #setRuntime(SonarRuntime)} to test your Sensor behaviour.
 */
@Override
public Version getSonarQubeVersion() {
 return runtime().getApiVersion();
}
origin: SonarSource/sonarqube

@Override
protected void doSave() {
 Preconditions.checkState(inputFile != null, "Call onFile() first");
 storage.store(this);
}
origin: SonarSource/sonarqube

private void addFileToFs(DefaultInputFile inputFile) {
 context.fileSystem().add(inputFile);
}
origin: SonarSource/sonarqube

 @Test
 public void storeProperty_throws_IAE_if_value_is_null() {
  expectedException.expect(IllegalArgumentException.class);
  expectedException.expectMessage("Value of context property must not be null");

  underTest.storeProperty("foo", null);
 }
}
origin: SonarSource/sonarqube

public static SensorContextTester create(File moduleBaseDir) {
 return new SensorContextTester(moduleBaseDir.toPath());
}
origin: SonarSource/sonarqube

@Override
protected void doSave() {
 checkInputFileNotNull();
 storage.store(this);
}
origin: SonarSource/sonarqube

@Override
public void doSave() {
 validateFile();
 if (!isExcluded()) {
  storage.store(this);
 }
}
origin: SonarSource/sonarqube

@Override
protected void doSave() {
 checkState(inputFile != null, "Call onFile() first");
 if (isExcludedForDuplication()) {
  return;
 }
 addNewTokensLine(result, startIndex, currentIndex, startLine, sb);
 storage.store(this);
}
org.sonar.api.batch.sensor.internal

Most used classes

  • DefaultSensorDescriptor
  • SensorContextTester
    Utility class to help testing Sensor. This is not an API and method signature may evolve. Usage: cal
  • SensorStorage
    Interface for storing data computed by sensors.
  • DefaultStorable
  • InMemorySensorStorage
  • SensorContextTester$InMemorySensorStorage,
  • SensorContextTester$MockAnalysisMode
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now