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.batch.rule.LoadedActiveRule since 10.13. Internal implementationorg.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.resources.Qualifiers since 10.13. Qualifiers are not used when developing plugins. This is exposed in some web APIs, but it doesn't make sense to make it part of the plugin API.org.sonar.api.resources.ResourceType since 10.13. We don't support custom resource types contributed by plugins anymore.org.sonar.api.resources.ResourceTypes since 10.13. We don't support custom resource types contributed by plugins anymore.org.sonar.api.resources.ResourceTypeTree since 10.13. We don't support custom resource types contributed by plugins anymore.org.sonar.api.resources.Scopes since 10.13. Scopes are not used when developing plugins. This is exposed in some web APIs, but it doesn't make sense to make it part of the plugin API.org.sonar.api.scan.filesystem.FileExclusions since 7.6org.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.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 plugin
-
Enums Enum Description org.sonar.api.rules.RulePriority since 4.2org.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
-
Enum Constants Enum Constant Description org.sonar.api.config.PropertyDefinition.ConfigScope.MODULE since 10.13. No more modules on the server side.org.sonar.api.issue.IssueStatus.CONFIRMED org.sonar.api.web.page.Page.Qualifier.MODULE since 10.13. No more modules on the server side
-
Annotation Type Elements Annotation Type Element Description org.sonar.api.Property.module() since 10.13. Modules are not used anymore.org.sonarsource.api.sonarlint.SonarLintSide.MULTIPLE_ANALYSES since 9.0 useSonarLintSide.INSTANCEas a direct replacement