Skip to content

Improve a pin combination case around selfy types - #1024

Merged
castwide merged 29 commits into
castwide:masterfrom
apiology:improve_selfy_type_pin_combination_case
Sep 30, 2025
Merged

castwide merged 29 commits into
castwide:masterfrom
apiology:improve_selfy_type_pin_combination_case

Conversation

@apiology

@apiology apiology commented Aug 4, 2025

Copy link
Copy Markdown
Contributor

An attempt at fixing return types that should have been 'self' during pin combination wasn't always working, due to Pin::Base#context sometimes returning Class.

Also improve type coverage around pin combination
@apiology
apiology marked this pull request as draft August 4, 2025 01:17
@apiology
apiology marked this pull request as ready for review August 28, 2025 17:17
end
end

context 'with return types that should probably be self' do

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This exercises the new code

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.
@castwide
castwide merged commit 217c8d5 into castwide:master Sep 30, 2025
26 checks passed
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