Skip to content

Conversation

@cho-m
Copy link
Member

@cho-m cho-m commented Dec 21, 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 #17297

Adds strict typing for:

  • bundle/installer
  • bundle/cargo_installer
  • bundle/flatpak_installer
  • bundle/go_installer
  • bundle/mac_app_store_installer
  • bundle/tap_installer
  • bundle/vscode_extension_installer
  • bundle/remover
  • bundle/cask_dumper

Copilot AI review requested due to automatic review settings December 21, 2025 21:56
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 adds strict typing (typed: strict) to multiple bundle installer files and related modules, enabling Sorbet's strictest type checking. The changes add type signatures to all public methods and properly annotate instance variables with T.let to satisfy strict typing requirements.

Key changes:

  • Upgraded typing level from typed: true to typed: strict across 7 bundle installer files
  • Added comprehensive method signatures with parameter and return types
  • Annotated memoized instance variables with T.let for proper type inference

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
bundle/vscode_extension_installer.rb Added strict typing with method signatures and T.let for @installed_extensions
bundle/tap_installer.rb Added strict typing, extracted clone_target parameter explicitly, added signatures
bundle/remover.rb Added strict typing with proper type annotations and explicit empty array return
bundle/mac_app_store_installer.rb Added strict typing with method signatures and T.let for instance variables
bundle/installer.rb Added strict typing with comprehensive signature for install! method
bundle/go_installer.rb Added strict typing with method signatures and T.let for @installed_packages
bundle/commands/remove.rb Updated signature to use String instead of T.anything for args
bundle/cargo_installer.rb Added strict typing with method signatures and T.let for @installed_packages

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

@cho-m cho-m force-pushed the bundle-typed-strict-1 branch 2 times, most recently from b004a01 to dfff0d0 Compare December 21, 2025 22:45
@cho-m cho-m force-pushed the bundle-typed-strict-1 branch from dfff0d0 to 1745486 Compare December 21, 2025 22:49
@cho-m cho-m force-pushed the bundle-typed-strict-1 branch from 1745486 to 179e09d Compare December 21, 2025 23:03
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.

Great work again, thanks for chugging through these @cho-m!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Dec 22, 2025
Merged via the queue into main with commit bf78152 Dec 22, 2025
56 of 57 checks passed
@MikeMcQuaid MikeMcQuaid deleted the bundle-typed-strict-1 branch December 22, 2025 10:11
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