Skip to content

Conversation

@cho-m
Copy link
Member

@cho-m cho-m commented Dec 11, 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?

Part of

Copilot AI review requested due to automatic review settings December 11, 2025 19:31
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 upgrades the Library/Homebrew/cleanup.rb file from typed: true to typed: strict, which is part of the broader effort tracked in #17297 to enforce stricter type checking across the Homebrew codebase. The changes add comprehensive Sorbet type annotations to satisfy strict mode requirements.

Key changes:

  • Added explicit type annotations to constants, instance variables, and class instance variables using T.let
  • Added method signatures (sig) for all public and private methods
  • Converted single attr_reader declaration into multiple declarations with individual type signatures

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

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Thanks!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Dec 12, 2025
Merged via the queue into main with commit a4ebb86 Dec 12, 2025
43 checks passed
@MikeMcQuaid MikeMcQuaid deleted the cleanup-type-strict branch December 12, 2025 14:23
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.

3 participants