Skip to content

Conversation

@cho-m
Copy link
Member

@cho-m cho-m commented Dec 3, 2025

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) with your changes locally?

Also switching to Enumerable#grep based on Sorbet recommendation:

Part of

Copilot AI review requested due to automatic review settings December 3, 2025 15:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates unversioned_cask_checker.rb to Sorbet's strict typing mode and refactors type filtering to use the Sorbet-recommended grep method instead of select with is_a? checks.

Key Changes:

  • Upgraded Sorbet sigil from typed: true to typed: strict
  • Added T.let annotations with T.nilable types to all lazily-initialized instance variables
  • Refactored type filtering from .select { |a| a.is_a?(Type) } to .grep(Type) for better Sorbet flow-sensitivity

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cho-m cho-m added this pull request to the merge queue Dec 4, 2025
Merged via the queue into main with commit 1cd151f Dec 4, 2025
41 checks passed
@cho-m cho-m deleted the unversioned_cask_checker-strict branch December 4, 2025 00:48
@MikeMcQuaid
Copy link
Member

Thanks again again @cho-m!

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.

4 participants