Skip to content
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

feat: OData implicit globals detection #510

Merged
merged 7 commits into from
Jan 31, 2025
Merged

Conversation

d3xter666
Copy link
Contributor

JIRA: CPOUI5FOUNDATION-915

@d3xter666 d3xter666 marked this pull request as draft January 30, 2025 13:53
@d3xter666 d3xter666 marked this pull request as ready for review January 31, 2025 07:57
@d3xter666 d3xter666 requested a review from a team January 31, 2025 07:57
return /^\{:?=/.test(bindingDefinition) && bindingDefinition.endsWith("}");
}

lintPropertyExpression(
Copy link
Contributor Author

@d3xter666 d3xter666 Jan 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not possible to use the BindingParser directly as it strips the information of the globals. However, in the runtime code a warning for those gets fired: https://github.com/SAP/ui5-linter/blob/main/src/linter/binding/lib/ExpressionParser.js#L125

The code in the ExpressionParser does not significantly differs from the current implementation. It just checks whether those globals are present in the expression

@d3xter666 d3xter666 changed the title feat: OData implicit globals feat: OData implicit globals detection Jan 31, 2025
@d3xter666 d3xter666 merged commit daff87b into main Jan 31, 2025
15 checks passed
@d3xter666 d3xter666 deleted the feat-odata-implicit-globals branch January 31, 2025 13:33
@openui5bot openui5bot mentioned this pull request Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants