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

Also check sorbet/rbi/todo.rbi for duplicated shims when running the check-shims command #992

Merged
merged 5 commits into from
Jun 17, 2022

Conversation

Morriar
Copy link
Collaborator

@Morriar Morriar commented Jun 14, 2022

Motivation

As we get better at generating RBI files or as the shared annotations become more comprehensive, this file is most certainly going to contain useless definitions.

Closes #980.

Implementation

To make this work I also had to implement checking for redundant empty scope as the TODO file generally only contains module definitions:

module Foo; end

Tests

See automated tests.

@Morriar Morriar added the enhancement New feature or request label Jun 14, 2022
@Morriar Morriar requested a review from a team June 14, 2022 22:35
@Morriar Morriar self-assigned this Jun 14, 2022
spec/tapioca/cli/check_shims_spec.rb Outdated Show resolved Hide resolved
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
@Morriar Morriar merged commit 8f82f96 into main Jun 17, 2022
@Morriar Morriar deleted the at-check-todo branch June 17, 2022 13:39
@shopify-shipit shopify-shipit bot temporarily deployed to production July 7, 2022 17:53 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider constants in todo.rbi files when checking for stale shims
3 participants