ui5-linter
ui5-linter copied to clipboard
feat: Detect Component best practices
JIRA: CPOUI5FOUNDATION-792
I don't see test cases for the other common base component classes in UI5:
sap/ui/generic/app/AppComponent sap/suite/ui/generic/template/lib/AppComponent sap/fe/core/AppComponent
These are all extending the sap/ui/core/UIComponent, so the general solution would handle them with the help of UI5 Types. Further more, if some of those classes starts implementing the async interface, that would also be matched :
https://github.com/SAP/ui5-linter/blob/4c4178e8bd1ba8b3c5d290d92d11f6e3e9289273/src/linter/ui5Types/BestPractices.ts#L40
I'm fine with this PR and once https://github.com/SAP/ui5-linter/pull/73#discussion_r1608011338 is clarified we can merge it.
As a follow-up I would like us to extract the texts similar to https://github.com/SAP/ui5-linter/pull/112/files#diff-9d3ca30e9cd9e1355253f085c67fd2abafe4dfff649602cacf8b3ddef81db990 and hand them over to UA for review.
GitHub requires an additional review from someone other than me 😅 @flovogt