crispgm/caravan

View on GitHub
exe/caravan

Summary

Maintainability
Test Coverage

%w-literals should be delimited by [ and ].
Open

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), *%w(.. lib)))
Severity: Minor
Found in exe/caravan by rubocop

This cop enforces the consistent usage of %-literal delimiters.

Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.

Example:

# Style/PercentLiteralDelimiters:
#   PreferredDelimiters:
#     default: '[]'
#     '%i':    '()'

# good
%w[alpha beta] + %i(gamma delta)

# bad
%W(alpha #{beta})

# bad
%I(alpha beta)

Line is too long. [87/80]
Open

  merged_conf = Caravan::Config.merge({}, Caravan.process_conf("."), default_spec_name)
Severity: Minor
Found in exe/caravan by rubocop

Pass array contents as separate arguments.
Open

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), *%w(.. lib)))
Severity: Minor
Found in exe/caravan by rubocop

This cop checks for unneeded usages of splat expansion

Example:

# bad

a = *[1, 2, 3]
a = *'a'
a = *1

begin
  foo
rescue *[StandardError, ApplicationError]
  bar
end

case foo
when *[1, 2, 3]
  bar
else
  baz
end

Example:

# good

c = [1, 2, 3]
a = *c
a, b = *c
a, *b = *c
a = *1..10
a = ['a']

begin
  foo
rescue StandardError, ApplicationError
  bar
end

case foo
when *[1, 2, 3]
  bar
else
  baz
end

There are no issues that match your filters.

Category
Status