-
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
feat: Add global detection for XML Templating #481
Conversation
8eb3ce4
to
28701d2
Compare
ff4a39b
to
bb0bd34
Compare
message: ({moduleNames}: {moduleNames: string}) => | ||
`Usage of space-separated list '${moduleNames}' in template:require`, | ||
details: () => `Use the object notation of template:require instead ` + | ||
`{@link topic:263f6e5a915f430894ee290040e7e220}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KlattG please review this new message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
6c2d8d4
to
79ea964
Compare
79ea964
to
1afb25a
Compare
JIRA: CPOUI5FOUNDATION-917
JIRA: CPOUI5FOUNDATION-917
1afb25a
to
a840e1f
Compare
<template:with path="field>Value/$Path" var="target"> | ||
|
||
<!-- Global access via computed annotation - no arguments, expression binding template:if --> | ||
<template:if test="{= ${target>@@sap.ui.model.odata.v4.AnnotationHelper.getValueListType} !== 'None' }"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<template:if test="{= ${target>@@sap.ui.model.odata.v4.AnnotationHelper.getValueListType} !== 'None' }"> | |
<template:if test="{= ${target>@@sap.ui.model.odata.v4.AnnotationHelper.getValueListType} !== 'None' }"> |
It's just a question as I cannot reason myself, but is this intentionally missed in the snapshots?
Line #23 is reported, but not this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's an expression binding, which creates "parts" that are not checked, yet. This will be done in a separate PR.
<template:else> | ||
|
||
<!-- Global access via computed annotation - no arguments, composite binding --> | ||
<Text text="ValueListType: {field>@@sap.ui.model.odata.v4.AnnotationHelper.getValueListType}" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as above. Why is that not reported? Is it because of the binding + text inside?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a composite binding, which creates "parts" that are not checked, yet. This will be done in a separate PR.
JIRA: CPOUI5FOUNDATION-917