cloudamatic/mu

View on GitHub
extras/list-stock-amis

Summary

Maintainability
Test Coverage

Script file list-stock-amis doesn't have execute permission.
Open

#!/usr/local/ruby-current/bin/ruby
Severity: Minor
Found in extras/list-stock-amis by rubocop

end at 26, 0 is not aligned with if at 22, 14.
Open

end
Severity: Minor
Found in extras/list-stock-amis by rubocop

This cop checks whether the end keywords are aligned properly.

Three modes are supported through the EnforcedStyleAlignWith configuration parameter:

If it's set to keyword (which is the default), the end shall be aligned with the start of the keyword (if, class, etc.).

If it's set to variable the end shall be aligned with the left-hand-side of the variable assignment, if there is one.

If it's set to start_of_line, the end shall be aligned with the start of the line where the matching keyword appears.

Example: EnforcedStyleAlignWith: keyword (default)

# bad

variable = if true
    end

# good

variable = if true
           end

Example: EnforcedStyleAlignWith: variable

# bad

variable = if true
    end

# good

variable = if true
end

Example: EnforcedStyleAlignWith: startofline

# bad

variable = if true
    end

# good

puts(if true
end)

Unused block argument - p. If it's necessary, use _ or _p as an argument name to indicate that it won't be used.
Open

platforms.each_pair { |p, r_data|
Severity: Minor
Found in extras/list-stock-amis by rubocop

This cop checks for unused block arguments.

Example:

# bad

do_something do |used, unused|
  puts used
end

do_something do |bar|
  puts :foo
end

define_method(:foo) do |bar|
  puts :baz
end

Example:

#good

do_something do |used, _unused|
  puts used
end

do_something do
  puts :foo
end

define_method(:foo) do |_bar|
  puts :baz
end

There are no issues that match your filters.

Category
Status