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

Check-shims command also look inside the sorbet/rbi/annotations directory #991

Merged
merged 4 commits into from
Jun 14, 2022

Conversation

Morriar
Copy link
Collaborator

@Morriar Morriar commented Jun 14, 2022

Motivation

Since we now pull annotations from remote sources, it is possible they make some local shims redundant.
With this PR, Tapioca also loads the contents of the sorbet/rbi/annotations directory to check for duplicates.

Fixes #960.

The first commit only moves the code of check-shims inside a command as to clean the cli. Relevant changes are in the following commits.

Tests

See automated testing.

Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
@Morriar Morriar added the enhancement New feature or request label Jun 14, 2022
@Morriar Morriar requested a review from a team June 14, 2022 21:01
@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>
…tory

Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
@Morriar Morriar merged commit 384e6d3 into main Jun 14, 2022
@Morriar Morriar deleted the at-check-annots branch June 14, 2022 22:25
@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.

check-shims command should take annotations folder into account
2 participants