Search in sources :

Example 1 with RulesProfileProvider

use of org.sonar.scanner.rule.RulesProfileProvider in project sonarqube by SonarSource.

the class ModuleScanContainer method addCoreComponents.

private void addCoreComponents() {
    add(module.definition(), // still injected by some plugins
    new Project(module.definition()), module, ModuleSettings.class);
    if (getComponentByType(AnalysisMode.class).isIssues()) {
        add(IssuesPhaseExecutor.class, IssuesReports.class);
    } else {
        add(PublishPhaseExecutor.class);
    }
    add(EventBus.class, RuleFinderCompatibility.class, PostJobsExecutor.class, SensorsExecutor.class, InitializersExecutor.class, // file system
    ModuleInputComponentStore.class, FileExclusions.class, ExclusionFilters.class, new MetadataGeneratorProvider(), FileMetadata.class, StatusDetectionFactory.class, LanguageDetection.class, FileIndexer.class, InputFileBuilder.class, FileSystemLogger.class, DefaultModuleFileSystem.class, ModuleFileSystemInitializer.class, QProfileVerifier.class, SensorOptimizer.class, PostJobOptimizer.class, DefaultPostJobContext.class, DefaultSensorStorage.class, DeprecatedSensorContext.class, ScannerExtensionDictionnary.class, IssueFilters.class, CoverageExclusions.class, SensorStrategy.class, // rules
    new RulesProfileProvider(), CheckFactory.class, // issues
    IssuableFactory.class, ModuleIssues.class, org.sonar.api.issue.NoSonarFilter.class, // issue exclusions
    IssueInclusionPatternInitializer.class, IssueExclusionPatternInitializer.class, IssueExclusionsRegexpScanner.class, IssueExclusionsLoader.class, EnforceIssuesFilter.class, IgnoreIssuesFilter.class, // Perspectives
    ScannerPerspectives.class, HighlightableBuilder.class, SymbolizableBuilder.class, DefaultFileLinesContextFactory.class);
}
Also used : Project(org.sonar.api.resources.Project) MetadataGeneratorProvider(org.sonar.scanner.scan.filesystem.MetadataGeneratorProvider) AnalysisMode(org.sonar.api.batch.AnalysisMode) RulesProfileProvider(org.sonar.scanner.rule.RulesProfileProvider)

Aggregations

AnalysisMode (org.sonar.api.batch.AnalysisMode)1 Project (org.sonar.api.resources.Project)1 RulesProfileProvider (org.sonar.scanner.rule.RulesProfileProvider)1 MetadataGeneratorProvider (org.sonar.scanner.scan.filesystem.MetadataGeneratorProvider)1