Deprecated API
Contents
-
Interfaces Interface Description org.sonar.api.batch.AnalysisMode since 7.3 preview mode deprecated since 6.6org.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.batch.rule.Rules since 7.4 we plan to stop loading rules on scanner sideorg.sonar.api.BatchComponent since 5.2 useScannerSide
annotationorg.sonar.api.component.Perspective since 5.2org.sonar.api.component.ResourcePerspectives since 5.6 all features are available onSensorContext
org.sonar.api.database.DatabaseProperties since 7.1, plugins don't connect to databaseorg.sonar.api.i18n.I18n since 7.8 as plugins as no reason to use it anymoreorg.sonar.api.i18n.RuleI18n in 4.1. Rules are not localized anymore. See http://jira.sonarsource.com/browse/SONAR-4885org.sonar.api.issue.IssueComment since 7.2, comments are no more availableorg.sonar.api.measures.MetricFinder since 5.1 useMetricFinder
on scanner side.org.sonar.api.scan.issue.filter.FilterableIssue since 7.6org.sonar.api.scan.issue.filter.IssueFilter since 7.6org.sonar.api.security.LoginPasswordAuthenticator replaced by Authenticator in version 3.1org.sonar.api.task.Task since 7.6org.sonar.api.task.TaskComponent since 5.1. UseScannerSide
andInstantiationStrategy.PER_TASK
org.sonar.api.task.TaskExtension since 5.1. Not used.org.sonar.api.test.CoverageBlock since 5.6. Feature will be removed without any alternatives.org.sonar.api.test.MutableTestable since 5.6. Feature will be removed without any alternatives.org.sonar.api.test.MutableTestCase since 5.6. Feature will be removed without any alternatives.org.sonar.api.test.MutableTestPlan since 5.6. Feature will be removed without any alternatives.org.sonar.api.test.Testable since 5.2org.sonar.api.test.TestCase since 5.2 not usedorg.sonar.api.test.TestPlan since 5.2 not usedorg.sonar.api.utils.ZipUtils.ZipEntryFilter replaced byPredicate
in 6.2.org.sonar.api.web.Footer since 6.3. This extension is ignored.org.sonar.api.web.Page since 6.3 seePageDefinition
. This class is ignored.org.sonar.api.web.RubyRailsPage since 6.3 seePageDefinition
. This class is ignored.org.sonar.api.web.RubyRailsWidget since 6.2, this extension is ignored as dashboards have been removedorg.sonar.api.web.View since 6.3 seePageDefinition
. This class is ignored.org.sonar.api.web.Webservice in 4.2. Replaced byWebService
org.sonar.api.web.Widget since 6.2, this extension is ignored as dashboards have been removed
-
Enums Enum Description org.sonar.api.batch.fs.InputFile.Status since 7.7 preview mode was droppedorg.sonar.api.batch.sensor.coverage.CoverageType since 6.2 SonarQube merge all coverage reports and don't keep track of different test categoryorg.sonar.api.rules.RulePriority since 4.2org.sonar.api.utils.Durations.DurationFormat since 6.3, only one format is availableorg.sonar.api.web.DashboardLayout since 6.2, this extension is ignored as dashboards have been removedorg.sonar.api.web.Section add annotation org.sonar.api.web.NavigationSection to View extensionsorg.sonar.api.web.WidgetLayoutType since 6.2, this extension is ignored as dashboards have been removedorg.sonar.api.web.WidgetPropertyType since 6.2, this extension is ignored as dashboards have been removed
-
Exceptions Exceptions Description org.sonar.api.test.exception.CoverageAlreadyExistsException since 5.6 feature will be removed soonorg.sonar.api.test.exception.IllegalDurationException since 5.6 feature will be removed soonorg.sonar.api.test.exception.TestException since 5.6 feature will be removed soonorg.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.DefaultTab since 6.3 seePageDefinition
. This class is ignored.org.sonar.api.web.Description since 6.3 seePageDefinition
. This class is ignored.org.sonar.api.web.NavigationSection since 6.3 seePageDefinition
. This class is ignored.org.sonar.api.web.ResourceLanguage since 6.3 seePageDefinition
. This class is ignored.org.sonar.api.web.ResourceQualifier since 6.3 seePageDefinition
. This class is ignored.org.sonar.api.web.ResourceScope since 6.3 seePageDefinition
. This class is ignored.org.sonar.api.web.WidgetCategory since 6.2, this extension is ignored as dashboards have been removedorg.sonar.api.web.WidgetLayout since 6.2, this extension is ignored as dashboards have been removedorg.sonar.api.web.WidgetProperties since 6.2, this extension is ignored as dashboards have been removedorg.sonar.api.web.WidgetProperty since 6.2, this extension is ignored as dashboards have been removedorg.sonar.api.web.WidgetScope since 6.2, this extension is ignored as dashboards have been removed
-
Constructors Constructor Description org.sonar.api.measures.Metric() in 1.12. Use theMetric.Builder
factory.org.sonar.api.profiles.RulesProfile() use the factory method create()org.sonar.api.profiles.XMLProfileParser(RuleFinder) since 2.5. Plugins shouldn't directly instantiate this class, because it should be retrieved as an IoC dependency.org.sonar.api.rules.ActiveRule() visibility should be reduced to protected or packageorg.sonar.api.rules.ActiveRuleParam() visibility should be decreased to protected or packageorg.sonar.api.rules.Rule() since 2.3. Use the factory methodRule.create()
org.sonar.api.rules.RuleParam() since 2.3 use the factory method Rule.setParameter()
-
Enum Constants Enum Constant Description org.sonar.api.batch.sensor.highlighting.TypeOfText.CPP_DOC org.sonar.api.ce.posttask.QualityGate.EvaluationStatus.WARN in 7.6org.sonar.api.ce.posttask.QualityGate.Operator.EQUALS in 7.6. Using this operator will have no effect.org.sonar.api.ce.posttask.QualityGate.Operator.NOT_EQUALS in 7.6. Using this operator will have no effect.org.sonar.api.ce.posttask.QualityGate.Status.WARN in 7.6.org.sonar.api.measures.Metric.Level.WARN in 7.6.org.sonar.api.PropertyType.LICENSE in 6.7.org.sonar.api.PropertyType.LONG since 6.3, this type is useless as Dashboards have been removedorg.sonar.api.PropertyType.METRIC since 6.3, this type is useless as Dashboards have been removedorg.sonar.api.PropertyType.METRIC_LEVEL since 6.3, this type is useless as Dashboards have been removed
-
Annotation Type Elements Annotation Type Element Description org.sonar.api.Property.propertySetKey() since 6.1, as it was not used and too complex to maintain.org.sonar.api.PropertyField.indicativeSize() since 6.1, as it was only used for UI.org.sonar.api.web.NavigationSection.RESOURCE_TAB in 4.5, as it costs too much to maintain and update.org.sonar.api.web.UserRole.VIEWER use the constant USER since 1.12.