Byte4/acebook-byte4

View on GitHub
bin/yarn

Summary

Maintainability
Test Coverage
Missing magic comment `# frozen_string_literal: true`.
#!/usr/bin/env ruby
VENDOR_PATH = File.expand_path('..', __dir__)
Dir.chdir(VENDOR_PATH) do
Redundant `begin` block detected.
begin
Prefer single-quoted strings inside interpolations.
exec "yarnpkg #{ARGV.join(" ")}"
rescue Errno::ENOENT
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Use `warn` instead of `$stderr.puts` to allow such output to be disabled.
$stderr.puts "Yarn executable was not detected in the system."
Use `warn` instead of `$stderr.puts` to allow such output to be disabled.
Prefer single-quoted strings when you don't need string interpolation or special symbols.
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
exit 1
end
end