Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Sorbet typed: true #711

Merged
merged 5 commits into from
Aug 19, 2024
Merged

Basic Sorbet typed: true #711

merged 5 commits into from
Aug 19, 2024

Conversation

issyl0
Copy link
Member

@issyl0 issyl0 commented Aug 17, 2024

@issyl0 issyl0 changed the title Basic Sorbet typed: strict Basic Sorbet typed: true Aug 17, 2024
@issyl0 issyl0 force-pushed the wip-srb branch 2 times, most recently from f279a1d to b3ea301 Compare August 17, 2024 21:57
lib/service/commands/list.rbi Outdated Show resolved Hide resolved
lib/service/formula_wrapper.rb Outdated Show resolved Hide resolved
lib/service/services_cli.rb Outdated Show resolved Hide resolved
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.

Very nice!

@issyl0
Copy link
Member Author

issyl0 commented Aug 19, 2024

I'll mark this as ready and re-run CI once Homebrew/brew#18027 merges later today.

@issyl0 issyl0 marked this pull request as ready for review August 19, 2024 13:33
```
./cask/artifact/symlinked.rb:38: Too many arguments provided for method Formatter.error. Expected: 1, got: 2 https://srb.help/7004
    38 |          Formatter.error(string, label: "Broken Link")
                                          ^^^^^^^^^^^^^^^^^^^^
    /opt/homebrew/Library/Taps/homebrew/homebrew-services/spec/spec_helper.rb:44: error defined here
    44 |  def error(string)
          ^^^^^^^^^^^^^^^^^
  Autocorrect: Use -a to autocorrect
    ./cask/artifact/symlinked.rb:38: Delete
    38 |          Formatter.error(string, label: "Broken Link")
```

- Sorbet's confused about the order of things, but we can read this as
  the services definition is wrong, it should say it's pulled from but
  instead it's the other way around because Sorbet's ordering.
@issyl0
Copy link
Member Author

issyl0 commented Aug 19, 2024

Thanks, @Bo98 - rebased this.

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.

Much nicer, thanks @issyl0!

lib/service.rbi Show resolved Hide resolved
@issyl0 issyl0 enabled auto-merge August 19, 2024 17:17
@issyl0 issyl0 merged commit 7d38bfc into master Aug 19, 2024
7 checks passed
@issyl0 issyl0 deleted the wip-srb branch August 19, 2024 17:17
@Bo98 Bo98 mentioned this pull request Aug 20, 2024
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