ui5-linter icon indicating copy to clipboard operation
ui5-linter copied to clipboard

Missing autofix for methods related to jQuery.position.*

Open flovogt opened this issue 8 months ago • 3 comments

Missing autofix for methods related to jQuery.position.*

Methods related to jQuery.position.* are deprecated. Therefore an autofix should be offered by UI5 linter.

Deprecated APIs:

  • [ ] jQuery.position.*

Deprecated Usage

var scrollbarWidthR = jQuery.position.scrollbarWidth();

Recommended Usage

sap.ui.define([
   "sap/ui/thirdparty/jqueryui/jquery-ui-position"
], (jQuery) => {
  var scrollbarWidthR = jQuery.position.scrollbarWidth();
});

flovogt avatar Mar 03 '25 12:03 flovogt

Will be implemented in CPOUI5FOUNDATION-990.

flovogt avatar Mar 03 '25 12:03 flovogt

Will be implemented in CPOUI5FOUNDATION-990.

Note: Since the mentioned API is currently not detected as a problem by UI5 linter, we decided to move the implementation of a detection, plus an eventual autofix, into a dedicated BLI. This should streamline the implementation of 990.

Related issues:

  • https://github.com/SAP/ui5-linter/issues/577 (this)
  • https://github.com/SAP/ui5-linter/issues/579
  • https://github.com/SAP/ui5-linter/issues/580

RandomByte avatar Apr 07 '25 17:04 RandomByte

Will be implemented in CPOUI5FOUNDATION-1048.

flovogt avatar Apr 08 '25 05:04 flovogt