use of org.sonar.api.resources.File in project sonarqube by SonarSource.
the class AbstractDeprecatedXooRuleSensor method doAnalyse.
private void doAnalyse(SensorContext context, String languageKey) {
RuleKey ruleKey = RuleKey.of(XooRulesDefinition.XOO_REPOSITORY, getRuleKey());
if (activeRules.find(ruleKey) == null) {
return;
}
for (InputFile inputFile : fs.inputFiles(fs.predicates().hasLanguage(languageKey))) {
File sonarFile = File.create(inputFile.relativePath());
sonarFile = context.getResource(sonarFile);
processFile(inputFile, sonarFile, context, ruleKey, languageKey);
}
}