-
-
Notifications
You must be signed in to change notification settings - Fork 111
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(developer): verify that packages do not contain themselves in kmc-package #13157
base: feat/developer/13134-improve-messages-and-links
Are you sure you want to change the base?
Conversation
User Test ResultsTest specification and instructions User tests are not required |
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
return true; | ||
} | ||
|
||
private doesContentFileEqualOutputFilename(file: KmpJsonFile.KmpJsonFileContentFile, outputFilename: string): boolean { |
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.
For consistency with the other methods, maybe rename to
private doesContentFileEqualOutputFilename(file: KmpJsonFile.KmpJsonFileContentFile, outputFilename: string): boolean { | |
private checkIfContentFileEqualsOutputFilename(file: KmpJsonFile.KmpJsonFileContentFile, outputFilename: string): boolean { |
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.
I actually didn't use checkIf
deliberately, because checkIf...
also reports a message, whereas does...
just checks without reporting. Probably would be better to refactor checkIf...
functions to just does...
in the future, but super lowpri.
developer/src/kmc-package/test/fixtures/invalid/error_package_must_not_contain_itself.kps
Outdated
Show resolved
Hide resolved
Co-authored-by: Darcy Wong <[email protected]>
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
Fixes: #13109
@keymanapp-test-bot skip