ddd-ruby/contracts.ruby

View on GitHub
lib/contracts/contract/call_with.rb

Summary

Maintainability
A
0 mins
Test Coverage

Do not place comments on the same line as the end keyword.
Open

  end # end CallWith
Severity: Minor
Found in lib/contracts/contract/call_with.rb by rubocop

This cop checks for comments put on the same line as some keywords. These keywords are: begin, class, def, end, module.

Note that some comments (such as :nodoc: and rubocop:disable) are allowed.

Example:

# bad
if condition
  statement
end # end if

# bad
class X # comment
  statement
end

# bad
def x; end # comment

# good
if condition
  statement
end

# good
class X # :nodoc:
  y
end

There are no issues that match your filters.

Category
Status