-
Notifications
You must be signed in to change notification settings - Fork 4.4k
chore: linter rule requires L2 interfaces to extend reference interface #36696
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
Conversation
This requires that `IBucket extends IBucketRef`, etc.
9f944ca to
ea8e187
Compare
| eval: e => { | ||
| const bases = e.ctx.getInterfaces(true); | ||
|
|
||
| e.assert(bases.some(b => b.name.endsWith('Ref')), e.ctx.fqn); |
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.
Not sure how strict we want to be, but this rule would allow IBucket to extend SomeNonsenseRef while not extending IBucketRef.
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 understand. "Close enough for government work" was my take. This is not to prevent cheating the system, it is to prevent forgetting.
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Merge Queue Status✅ The pull request has been merged at 7717128 This pull request spent 59 minutes 43 seconds in the queue, including 42 minutes 15 seconds running CI. Required conditions to merge
|
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Comments on closed issues and PRs are hard for our team to see. |
This requires that
IBucket extends IBucketRef, etc.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license