Skip to content

Get Sorbet type checking green #57

@rickmark

Description

@rickmark

(base) ➜ apple-knowledge git:(sorbet_fix) srb tc
_packages/ruby/lib/apple_data.rb:12: This function does not have a sig https://srb.help/7017
12 |def get_data(file)
^^^^^^^^^^^^^^^^^^

_packages/ruby/lib/apple_data.rb:10: Constants must have type annotations with T.let when specifying # typed: strict https://srb.help/7027
10 |APPLE_DATA_SHARE = File.join(File.dirname(FILE), '../share/')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Autocorrect: Use -a to autocorrect
_packages/ruby/lib/apple_data.rb:10: Replace with T.let(File.join(File.dirname(FILE), '../share/'), String)
10 |APPLE_DATA_SHARE = File.join(File.dirname(FILE), '../share/')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

_tools/lib/common.rb:85: Splats are only supported where the size of the array is known statically https://srb.help/7019
85 | load_file(*parts)
^

_tools/lib/common.rb:91: Splats are only supported where the size of the array is known statically https://srb.help/7019
91 | @filename = File.join(DATA_DIR, File.join(*parts))
^
Errors: 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions