-
Notifications
You must be signed in to change notification settings - Fork 5.6k
add new rule for python configuration validation #39142
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
base: main
Are you sure you want to change the base?
Conversation
Next Steps to MergeNext steps that must be taken to merge this PR:
Comment generated by summarize-checks workflow run. |
| } | ||
| } | ||
|
|
||
| export class TspConfigPythonNamespaceMatchesEmitterOutputDirSubRule extends TspconfigSubRuleBase { |
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.
Is this rule to validate the namespace is matching with last segment of emitter-output-dir?
| return { success: true }; | ||
| } | ||
|
|
||
| private resolveLastPathSegment( |
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.
@skywing918 Can we share a helper to get the last segment of emitter-output-dir?
I think we need to share this logic and also in that logic to fix our existing bug:#38964.
MaryGao
left a comment
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.
As offline discussed, @skywing918 pls have a pr to prepare the helper first so that in this pr we could leverage the same helper and no need to duplicate it.
For python, inconsistency between
emitter-output-dirandnamespacewill cause unexpected error (e.g. here) so we need add a new rule for python.