ifad/vacman_controller

View on GitHub
lib/vacman_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage

Extra empty line detected before the rescue.
Open


    rescue VacmanController::Error => e
Severity: Minor
Found in lib/vacman_controller.rb by rubocop

This cops checks if empty lines exist around the bodies of begin sections. This cop doesn't check empty lines at begin body beginning/end and around method definition body. Style/EmptyLinesAroundBeginBody or Style/EmptyLinesAroundMethodBody can be used for this purpose.

Example:

# good

begin
  do_something
rescue
  do_something2
else
  do_something3
ensure
  do_something4
end

# good

def foo
  do_something
rescue
  do_something2
end

# bad

begin
  do_something

rescue

  do_something2

else

  do_something3

ensure

  do_something4
end

# bad

def foo
  do_something

rescue

  do_something2
end

Line is too long. [105/80]
Open

        raise VacmanController::Error, "#{e.library_method} error #{e.error_code}: invalid transport key"
Severity: Minor
Found in lib/vacman_controller.rb by rubocop

Extra empty line detected at module body end.
Open


end
Severity: Minor
Found in lib/vacman_controller.rb by rubocop

This cops checks if empty lines around the bodies of modules match the configuration.

Example: EnforcedStyle: empty_lines

# good

module Foo

  def bar
    # ...
  end

end

Example: EnforcedStyle: emptylinesexcept_namespace

# good

module Foo
  module Bar

    # ...

  end
end

Example: EnforcedStyle: emptylinesspecial

# good
module Foo

  def bar; end

end

Example: EnforcedStyle: noemptylines (default)

# good

module Foo
  def bar
    # ...
  end
end

Line is too long. [104/80]
Open

        raise VacmanController::Error, "#{e.library_method} error #{e.error_code}: cannot open DPX file"
Severity: Minor
Found in lib/vacman_controller.rb by rubocop

There are no issues that match your filters.

Category
Status