Skip to content

[blocker] Less-rigorous assertions merging assignment attribute of parameter pins#1088

Closed
apiology wants to merge 58 commits intocastwide:masterfrom
apiology:fix_assignment_handling
Closed

[blocker] Less-rigorous assertions merging assignment attribute of parameter pins#1088
apiology wants to merge 58 commits intocastwide:masterfrom
apiology:fix_assignment_handling

Conversation

@apiology
Copy link
Contributor

@apiology apiology commented Sep 21, 2025

Default values don't exist in RBS; it just tells you if the arg is optional or not - this created a problem in solargraph-rails specs while assertions were on, as we asserted that the default value was the same between the two pins being merged.

Blocks:

Includes for convenience:

apiology and others added 30 commits August 30, 2025 09:06
To avoid merge conflicts and contributors having to deal with
non-intuitive RuboCop todo changes:

* Lock down development versions of RuboCop and plugins so that
  unrelated PRs aren't affected by newly implemented RuboCop rules.
* Exclude rule entirely if more than 5 files violate it today, so that
  PRs are less likely to cause todo file changes unless they are
  specifically targeted at cleanup.
* Clarify guidance on RuboCop todo file in CI error message.
* Fix to hopefully ensure guidance always appears in CI error message.
Default values don't exist in RBS; it just tells you if the arg is
optinal or not - this was a problem in solargraph-rails specs while
assertions were on.
@apiology apiology changed the title Less-rigorous assertions merging assignment attribute of parameter pins [blocker] Less-rigorous assertions merging assignment attribute of parameter pins Dec 31, 2025

def combine_with(other, attrs={})
new_attrs = {
assignment: assert_same(other, :assignment),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was redundant with BaseVariable - let's centralize the logic instead of changing two places

@apiology
Copy link
Contributor Author

apiology commented Mar 2, 2026

Merged into v0.59 release branch

@apiology apiology closed this Mar 2, 2026
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.

2 participants