Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is step 2 in the adopting sorbet in an existing codebase guide.
Here's the full output:
bundle exec tapioca init
Followed by the initial type check using sorbet:
bundle exec srb tc
This led me to make 3 changes on top of the default initialization:
Two issues of error 5002
Sorbet doesn't seem to be able to resolve constants on RSpec
described_class
, at least out of the box. For now I've hardcoded the specific constants, and will come back to it later.An unresolved reference to
sentry-raven
The top level
Gemfile
doesn't importupdater
, sosentry-raven
isn't installed andtapioca init
doesn't generate types for it. For now, I've addedupdater
to the list of ignored directories, and will circle back to it at a later date.After making the above changes sorbet runs with no errors:
$ srb tc No errors! Great job.