Deprecated API
Contents
-
For Removal Element Description org.sonar.api.batch.rule.LoadedActiveRule since 10.13. Internal implementationorg.sonar.api.config.PropertyDefinition.Builder.onlyOnQualifiers(String, String...) since 10.13. UsePropertyDefinition.Builder.onlyOnConfigScopes(ConfigScope, ConfigScope...)
instead.org.sonar.api.config.PropertyDefinition.Builder.onQualifiers(String, String...) since 10.13. UsePropertyDefinition.Builder.onConfigScopes(ConfigScope, ConfigScope...)
instead.org.sonar.api.config.PropertyDefinition.ConfigScope.MODULE since 10.13. No more modules on the server side.org.sonar.api.config.PropertyDefinition.qualifiers() since 10.13. UsePropertyDefinition.configScopes()
instead.org.sonar.api.issue.DefaultTransitions since 11.4 not used by any extension point anymoreorg.sonar.api.Property.module() since 10.13. Modules are not used anymore.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.rules.Rule org.sonar.api.rules.RuleFinder since 11.4 as ProfileExporter/ProfileImporter got removedorg.sonar.api.rules.RuleParam org.sonar.api.rules.RuleQuery since 11.4 as ProfileExporter/ProfileImporter got removedorg.sonar.api.server.rule.internal.DefaultRule.markdownDescription() since 9.6 markdown support fur rule descriptions will be droppedorg.sonar.api.server.rule.RulesDefinition.NewRule.setMarkdownDescription(String) since 9.6. UseRulesDefinition.NewRule.addDescriptionSection(RuleDescriptionSection)
insteadorg.sonar.api.server.rule.RulesDefinition.Rule.markdownDescription() since 9.6. Use html format insteadorg.sonar.api.web.page.Page.Qualifier.fromKey(String) since 10.13. Should not be exposed in the plugin API.org.sonar.api.web.page.Page.Qualifier.getKey() since 10.13. Should not be exposed in the plugin API.org.sonar.api.web.page.Page.Qualifier.MODULE since 10.13. No more modules on the server sideorg.sonar.api.web.UserRole since 11.4 not used by any extension point anymore
-
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. UseInputProject
instead.org.sonar.api.issue.DefaultTransitions since 11.4 not used by any extension point anymoreorg.sonar.api.rules.RuleFinder since 11.4 as ProfileExporter/ProfileImporter got removedorg.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 useInputProject
org.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.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.rules.Rule org.sonar.api.rules.RuleParam org.sonar.api.rules.RuleQuery since 11.4 as ProfileExporter/ProfileImporter got removedorg.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 ofLoggerFactory
org.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 likeIllegalArgumentException
orIllegalStateException
. UseMessageException
for 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, usingScannerSide
org.sonar.api.batch.ScannerSide since 7.6 useScannerSide
that will move the component to the project containerorg.sonar.api.web.UserRole since 11.4 not used by any extension point anymore
-
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.INSTANCE
as a direct replacement