Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Resolves
External Argument Default Mismatch
specification doesnt account for all arguments #102Resolves
External Argument Default Mismatch
specification doesnt account for all arguments #102Changes from 1 commit
ca4f35e
0993a14
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Assume defaults:
Schema A: 1
Schema B: 2
Schema C: 3 (external)
Wouldn't this compare:
3 with 1
3 with 2
3 with 3 (redundant)
i.e. External defaults shouldn't be included in
defaultValues
?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.
does this change the outcome of the rule?
I more or less try to word the rules as simple as possible.
The actualy implementation of the rule would be completely different anyway i believe.
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.
Hmm. I'm not sure. Maybe not in this specific case.
If there were more than 1 external argument, it would fail if the default values of 2 or more external arguments didn't match?
Assume defaults:
Schema A: 2
Schema B: 2 (external)
Schema C: 3 (external)
Compares:
2 with 2 (B - A)
2 with 2 (B - B)
2 with 3 (B - C [external - external])
3 with 2 (C - A)
3 with 2 (C - B [external - external])
3 with 3 (C - C)
Also the explanatory text is:
🤷♂️