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: Detect usage of non exported values by library.js #468

Merged
merged 25 commits into from
Jan 14, 2025

Conversation

d3xter666
Copy link
Contributor

JIRA: CPOUI5FOUNDATION-957

@d3xter666 d3xter666 marked this pull request as draft January 9, 2025 09:31
@d3xter666 d3xter666 marked this pull request as ready for review January 9, 2025 13:18
@d3xter666 d3xter666 requested a review from KlattG January 9, 2025 13:18
@d3xter666
Copy link
Contributor Author

@d3xter666 d3xter666 requested a review from a team January 9, 2025 13:20
Copy link
Contributor

@KlattG KlattG left a comment

Choose a reason for hiding this comment

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

LGTM

src/linter/ui5Types/SourceFileLinter.ts Outdated Show resolved Hide resolved
src/linter/ui5Types/SourceFileLinter.ts Outdated Show resolved Hide resolved
@d3xter666 d3xter666 force-pushed the feat-libjs-non-exported-values branch from 0e40a22 to 8bb9d55 Compare January 10, 2025 08:31
@d3xter666 d3xter666 requested a review from matz3 January 10, 2025 10:30
@d3xter666 d3xter666 requested review from matz3 and KlattG January 10, 2025 13:20
@d3xter666 d3xter666 requested a review from matz3 January 10, 2025 17:16
Copy link
Contributor

@KlattG KlattG left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@matz3 matz3 left a comment

Choose a reason for hiding this comment

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

LGTM

"sap/ui/core/library",
// This ones are correct- elements, imported as modules
"sap/ui/unified/DateTypeRange",
"sap/ui/unified/CalendarDayType",
Copy link
Member

Choose a reason for hiding this comment

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

This is actually a pseudo module (see finding in test snapshot), and it should rather be accessed via the library module.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, and that's why I added it. With the prevous miss, actually the pseudo modules were also reported as non exported values. Let's leave this as a safeguard.

@matz3 matz3 requested a review from a team January 13, 2025 08:01
@d3xter666 d3xter666 merged commit be2cbb7 into main Jan 14, 2025
13 checks passed
@d3xter666 d3xter666 deleted the feat-libjs-non-exported-values branch January 14, 2025 12:17
@openui5bot openui5bot mentioned this pull request Jan 14, 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.

3 participants