-
Notifications
You must be signed in to change notification settings - Fork 100
Description
(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