lib/generamba/template/installer/abstract_installer.rb
Final newline missing. Open
Open
end
- Exclude checks
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
Open
def install_template(template_declaration)
- Read upRead up
- Exclude checks
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
Open
# Abstract template installer class
- Read upRead up
- Exclude checks
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