floored1585/quagga-cookbook

View on GitHub

Showing 23 of 23 total issues

Expression at 11, 49 should be on its own line.
Open

         node['quagga']['static_routes'].empty? }
Severity: Minor
Found in recipes/zebra.rb by rubocop

This cop checks whether the end statement of a do..end block is on its own line.

Example:

# bad
blah do |i|
  foo(i) end

# good
blah do |i|
  foo(i)
end

# bad
blah { |i|
  foo(i) }

# good
blah { |i|
  foo(i)
}

Use 2 (not 7) spaces for indenting an expression spanning multiple lines.
Open

         node['quagga']['interfaces'].empty? &&
Severity: Minor
Found in recipes/zebra.rb by rubocop

This cop checks the indentation of the right hand side operand in binary operations that span more than one line.

Example:

# bad
if a +
b
  something
end

# good
if a +
   b
  something
end

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

task default: %w(doc style unit integration)
Severity: Minor
Found in Rakefile 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)
Severity
Category
Status
Source
Language