apple-knowledge icon indicating copy to clipboard operation
apple-knowledge copied to clipboard

Get Sorbet type checking green

Open rickmark opened this issue 3 years ago • 1 comments

(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

rickmark avatar Aug 12 '22 01:08 rickmark

row

Lil-Gitty-Kat avatar Apr 22 '23 02:04 Lil-Gitty-Kat