MLSDev/easy-matchers

View on GitHub
lib/easy-matchers.rb

Summary

Maintainability
A
0 mins
Test Coverage

Extra empty line detected at module body beginning.
Open


    end
Severity: Minor
Found in lib/easy-matchers.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

The name of this source file (easy-matchers.rb) should use snake_case.
Open

require 'matchers/version'
Severity: Minor
Found in lib/easy-matchers.rb by rubocop

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