nertwork/frr-cookbook

View on GitHub
recipes/install.rb

Summary

Maintainability
A
0 mins
Test Coverage

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

  %w( zebra.conf ospfd.conf ospf6d.conf bgpd.conf ).each do |file|
Severity: Minor
Found in recipes/install.rb 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)

Do not use spaces inside percent literal delimiters.
Open

if %w( debian ubuntu cumulus ).include? node['platform']
Severity: Minor
Found in recipes/install.rb by rubocop

Checks for unnecessary additional spaces inside the delimiters of %i/%w/%x literals.

Example:

# good
%i(foo bar baz)

# bad
%w( foo bar baz )

# bad
%x(  ls -l )

Do not use spaces inside percent literal delimiters.
Open

  %w( zebra.conf ospfd.conf ospf6d.conf bgpd.conf ).each do |file|
Severity: Minor
Found in recipes/install.rb by rubocop

Checks for unnecessary additional spaces inside the delimiters of %i/%w/%x literals.

Example:

# good
%i(foo bar baz)

# bad
%w( foo bar baz )

# bad
%x(  ls -l )

Do not use spaces inside percent literal delimiters.
Open

  %w( zebra.conf ospfd.conf ospf6d.conf bgpd.conf ).each do |file|
Severity: Minor
Found in recipes/install.rb by rubocop

Checks for unnecessary additional spaces inside the delimiters of %i/%w/%x literals.

Example:

# good
%i(foo bar baz)

# bad
%w( foo bar baz )

# bad
%x(  ls -l )

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

if %w( debian ubuntu cumulus ).include? node['platform']
Severity: Minor
Found in recipes/install.rb 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)

Do not use spaces inside percent literal delimiters.
Open

if %w( debian ubuntu cumulus ).include? node['platform']
Severity: Minor
Found in recipes/install.rb by rubocop

Checks for unnecessary additional spaces inside the delimiters of %i/%w/%x literals.

Example:

# good
%i(foo bar baz)

# bad
%w( foo bar baz )

# bad
%x(  ls -l )

There are no issues that match your filters.

Category
Status