Showing 18 of 18 total issues
Use reject
instead of inverting select
. Open
yarn = ENV["PATH"].split(File::PATH_SEPARATOR). select { |dir| File.expand_path(dir) != __dir__ }.
- Read upRead up
- Exclude checks
Place the . on the next line, together with the method name. Open
select { |dir| File.expand_path(dir) != __dir__ }.
- Read upRead up
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
product(["yarn", "yarn.cmd", "yarn.ps1"]).
- Read upRead up
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
product(["yarn", "yarn.cmd", "yarn.ps1"]).
- Read upRead up
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
$stderr.puts "Yarn executable was not detected in the system."
- Read upRead up
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
- Read upRead up
- Exclude checks
Align map
with ENV["PATH"].split(File::PATH_SEPARATOR).
on line 4. Open
map { |dir, file| File.expand_path(file, dir) }.
- Read upRead up
- Exclude checks
Place the . on the next line, together with the method name. Open
map { |dir, file| File.expand_path(file, dir) }.
- Read upRead up
- Exclude checks
Use warn
instead of $stderr.puts
to allow such output to be disabled. Open
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
- Read upRead up
- Exclude checks
Align product
with ENV["PATH"].split(File::PATH_SEPARATOR).
on line 4. Open
product(["yarn", "yarn.cmd", "yarn.ps1"]).
- Read upRead up
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
yarn = ENV["PATH"].split(File::PATH_SEPARATOR).
- Read upRead up
- Exclude checks
Align select
with ENV["PATH"].split(File::PATH_SEPARATOR).
on line 4. Open
select { |dir| File.expand_path(dir) != __dir__ }.
- Read upRead up
- Exclude checks
Prefer single-quoted strings when you don't need string interpolation or special symbols. Open
product(["yarn", "yarn.cmd", "yarn.ps1"]).
- Read upRead up
- Exclude checks
Place the . on the next line, together with the method name. Open
product(["yarn", "yarn.cmd", "yarn.ps1"]).
- Read upRead up
- Exclude checks
Place the . on the next line, together with the method name. Open
yarn = ENV["PATH"].split(File::PATH_SEPARATOR).
- Read upRead up
- Exclude checks
Align find
with ENV["PATH"].split(File::PATH_SEPARATOR).
on line 4. Open
find { |file| File.executable?(file) }
- Read upRead up
- Exclude checks
Use warn
instead of $stderr.puts
to allow such output to be disabled. Open
$stderr.puts "Yarn executable was not detected in the system."
- Read upRead up
- Exclude checks