-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI5 Linter doesn't mark getSecurityToken
as deprectaed
#516
Comments
Can you please share at least a few lines of code around the |
@codeworrior, thanks for your extremely prompt response! The way I call sap.ui.define([
"./BaseController",
"sap/ui/model/odata/v2/ODataModel"
], function (BaseController, ODataModel) {
"use strict";
return BaseController.extend("org.company.app.controller.Main", {
onInit: function() {
const securityToken = ODataModel.getSecurityToken();
}
});
}); What's interesting, when I add a call of another deprecated module, e.g. |
Ehm, if I'm not mistaken, |
You're right, However, in the original codebase, we have something like BTW, I assumed, that UI5 Linter just parses usage of a module's methods and checks it against the list of deprecated APIs. |
Understandable, but we have methods like Methods with a quite generic return type like |
Perhaps, the proper JSDoc signatures can serve as a workaround, until the described functionality is implemented or until the codebase is migrated to TypeScript, |
Sorry, I have to correct myself. @matz3 reminded me that for |
Great, then less job to be done! |
Thanks a lot @pubmikeb for reporting this missing feature. We will implement this in backlog item CPOUI5FOUNDATION-1014 (SAP-internal). |
Expected Behavior
getSecurityToken()
ofsap.ui.model.odata.v2.ODataModel
should be marked as deprecated.Current Behavior
UI5 Linter doesn't mark
getSecurityToken()
as deprecated.Steps to Reproduce the Issue
getSecurityToken()
ui5lint
Context
1.8.0
20.18.1
10.8.2
SAP BAS
SAP BAS
The text was updated successfully, but these errors were encountered: