rambler-digital-solutions/Generamba

View on GitHub
lib/generamba/tools/string-colorize.rb

Summary

Maintainability
A
0 mins
Test Coverage

Final newline missing.
Open

end

Extra empty line detected at class body beginning.
Open


  def colorize(color_code)

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

Example: EnforcedStyle: empty_lines

# good

class Foo

  def bar
    # ...
  end

end

Example: EnforcedStyle: emptylinesexcept_namespace

# good

class Foo
  class Bar

    # ...

  end
end

Example: EnforcedStyle: emptylinesspecial

# good
class Foo

  def bar; end

end

Example: EnforcedStyle: noemptylines (default)

# good

class Foo
  def bar
    # ...
  end
end

The name of this source file (string-colorize.rb) should use snake_case.
Open

# Adds a number of methods for colorizing output strings

This cop makes sure that Ruby source files have snake_case names. Ruby scripts (i.e. source files with a shebang in the first line) are ignored.

Example:

# bad
lib/layoutManager.rb

anything/usingCamelCase

# good
lib/layout_manager.rb

anything/using_snake_case.rake

There are no issues that match your filters.

Category
Status