Deprecated API
Contents
-
Interfaces Interface Description org.sonar.api.batch.bootstrap.ProjectBuilder.Context org.sonar.api.batch.fs.InputDir since 6.6 Ability to report issues or measures on directories will soon be dropped. Report issues on project if needed.org.sonar.api.batch.fs.InputModule since 7.6 modules are deprecated. UseInputProjectinstead.org.sonar.api.scan.issue.filter.FilterableIssue since 7.6org.sonar.api.scan.issue.filter.IssueFilter since 7.6org.sonar.api.utils.log.Logger since 9.15 in favor ofLogger
-
Classes Class Description org.sonar.api.batch.bootstrap.internal.ProjectBuilderContext since 6.5org.sonar.api.batch.bootstrap.ProjectBuilder since 6.5. It won't be possible to manipulate the project's structure.org.sonar.api.batch.bootstrap.ProjectDefinition since 7.6 useInputProjectorg.sonar.api.batch.bootstrap.ProjectReactor since 6.5 plugins should no longer modify the project's structureorg.sonar.api.config.Settings since 6.5 useConfiguration. Implementation moved out of the API in 8.3. Only remains minimal interface to make some outdated plugins happy.org.sonar.api.profiles.ProfileExporter since 9.1. Web services should be used instead.org.sonar.api.profiles.ProfileImporter since 9.1. Web services should be used instead.org.sonar.api.rule.Severity since 10.1, use impacts withSeverityinsteadorg.sonar.api.scan.filesystem.FileExclusions since 7.6org.sonar.api.server.rule.internal.ImpactMapper since 10.1 This is only used for mapping deprecated types and severities until they are removedorg.sonar.api.server.rule.RulesDefinitionXmlLoader since 9.0. Use the sonar-check-api to annotate rule classes instead of loading the metadata from XML files. SeeRule.org.sonar.api.server.rule.RuleTagsToTypeConverter since 10.1.org.sonar.api.utils.log.Loggers since 9.15 in favor ofLoggerFactoryorg.sonar.api.utils.text.JsonWriter since 8.3 this utility class will be moved out of the API. Use your own JSON dependency if you need to write JSON from your pluginorg.sonar.api.web.ServletFilter since 9.16. UseHttpFilterinstead.
-
Enums Enum Description org.sonar.api.batch.rule.Severity since 10.1, use impacts withSeverityinsteadorg.sonar.api.rules.RulePriority since 4.2org.sonar.api.rules.RuleType since 10.1, use impacts withSoftwareQualityinsteadorg.sonar.api.server.rule.RulesDefinition.CweVersion in 9.15org.sonar.api.utils.log.LoggerLevel since 9.15 in favor ofLevel
-
Exceptions Exceptions Description org.sonar.api.utils.SonarException in 4.4. Use standard exceptions likeIllegalArgumentExceptionorIllegalStateException. UseMessageExceptionfor raising errors to end-users without displaying stackstrace.
-
Annotation Types Annotation Type Description org.sonar.api.batch.InstantiationStrategy since 7.6 removal of modules and tasks is planned. All extensions should progressively move to the project scope, usingScannerSideorg.sonar.api.batch.ScannerSide since 7.6 useScannerSidethat will move the component to the project container
-
Constructors Constructor Description org.sonar.api.profiles.RulesProfile() use the factory method create()org.sonar.api.rules.ActiveRule() visibility should be reduced to protected or packageorg.sonar.api.rules.ActiveRuleParam() visibility should be decreased to protected or package
-
Annotation Type Elements Annotation Type Element Description org.sonarsource.api.sonarlint.SonarLintSide.MULTIPLE_ANALYSES since 9.0 useSonarLintSide.INSTANCEas a direct replacement