You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Declaring a dependency to a deprecated module (e.g. via sap.ui.define) should yield an error, even when no API of that module is being used.
Current Behavior
Declaring a dependency to a deprecated module which exports an interface (e.g. sap.ui.core.Configuration) does not yield an error.
I suspect that this is related to check for symbol.valueDeclaration and the different behavior for interfaces.
The valueDeclaration can be undefined. This happens when there are no declarations associated with a symbol that could hold a value. If a symbol only represents an interface declaration, valueDeclaration would be undefined because an interface itself cannot hold a value. The code should probably check for all declarations of the symbol (symbol.getDeclarations()).
Expected Behavior
Declaring a dependency to a deprecated module (e.g. via sap.ui.define) should yield an error, even when no API of that module is being used.
Current Behavior
Declaring a dependency to a deprecated module which exports an interface (e.g. sap.ui.core.Configuration) does not yield an error.
I suspect that this is related to check for
symbol.valueDeclaration
and the different behavior for interfaces.The
valueDeclaration
can beundefined
. This happens when there are no declarations associated with a symbol that could hold a value. If a symbol only represents an interface declaration,valueDeclaration
would beundefined
because an interface itself cannot hold a value. The code should probably check for all declarations of the symbol (symbol.getDeclarations()
).Steps to Reproduce the Issue
Run
ui5lint
for this code:Context
0.2.1
v20.11.1
10.2.4
macOS 14.4.1
Log Output / Stack Trace
The text was updated successfully, but these errors were encountered: