hovancik/BSDSec

View on GitHub
bin/yarn

Summary

Maintainability
Test Coverage

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__ }.
Severity: Minor
Found in bin/yarn by rubocop

Place the . on the next line, together with the method name.
Open

select { |dir| File.expand_path(dir) != __dir__ }.
Severity: Minor
Found in bin/yarn by rubocop

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

product(["yarn", "yarn.cmd", "yarn.ps1"]).
Severity: Minor
Found in bin/yarn by rubocop

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

product(["yarn", "yarn.cmd", "yarn.ps1"]).
Severity: Minor
Found in bin/yarn by rubocop

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."
Severity: Minor
Found in bin/yarn by rubocop

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"
Severity: Minor
Found in bin/yarn by rubocop

Align map with ENV["PATH"].split(File::PATH_SEPARATOR). on line 4.
Open

map { |dir, file| File.expand_path(file, dir) }.
Severity: Minor
Found in bin/yarn by rubocop

Place the . on the next line, together with the method name.
Open

map { |dir, file| File.expand_path(file, dir) }.
Severity: Minor
Found in bin/yarn by rubocop

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"
Severity: Minor
Found in bin/yarn by rubocop

Align product with ENV["PATH"].split(File::PATH_SEPARATOR). on line 4.
Open

product(["yarn", "yarn.cmd", "yarn.ps1"]).
Severity: Minor
Found in bin/yarn by rubocop

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

yarn = ENV["PATH"].split(File::PATH_SEPARATOR).
Severity: Minor
Found in bin/yarn by rubocop

Align select with ENV["PATH"].split(File::PATH_SEPARATOR). on line 4.
Open

select { |dir| File.expand_path(dir) != __dir__ }.
Severity: Minor
Found in bin/yarn by rubocop

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

product(["yarn", "yarn.cmd", "yarn.ps1"]).
Severity: Minor
Found in bin/yarn by rubocop

Place the . on the next line, together with the method name.
Open

product(["yarn", "yarn.cmd", "yarn.ps1"]).
Severity: Minor
Found in bin/yarn by rubocop

Place the . on the next line, together with the method name.
Open

yarn = ENV["PATH"].split(File::PATH_SEPARATOR).
Severity: Minor
Found in bin/yarn by rubocop

Align find with ENV["PATH"].split(File::PATH_SEPARATOR). on line 4.
Open

find { |file| File.executable?(file) }
Severity: Minor
Found in bin/yarn by rubocop

Missing frozen string literal comment.
Open

#!/usr/bin/env ruby
Severity: Minor
Found in bin/yarn by rubocop

Use warn instead of $stderr.puts to allow such output to be disabled.
Open

$stderr.puts "Yarn executable was not detected in the system."
Severity: Minor
Found in bin/yarn by rubocop
Category
Status