rambler-digital-solutions/Generamba

View on GitHub
lib/generamba/template/installer/abstract_installer.rb

Summary

Maintainability
A
0 mins
Test Coverage

Final newline missing.
Open

end

Unused method argument - template_declaration. If it's necessary, use _ or _template_declaration as an argument name to indicate that it won't be used. You can also write as install_template(*) if you want the method to accept any arguments but don't care about them.
Open

    def install_template(template_declaration)

This cop checks for unused method arguments.

Example:

# bad

def some_method(used, unused, _unused_but_allowed)
  puts used
end

Example:

# good

def some_method(used, _unused, _unused_but_allowed)
  puts used
end

Extra empty line detected at module body beginning.
Open


  # Abstract template installer class

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

There are no issues that match your filters.

Category
Status