am-kantox/see_as_vee

View on GitHub

Showing 21 of 21 total issues

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

      def normalize symbol = true # to_s otherwise
Severity: Minor
Found in lib/see_as_vee/producers/hashes.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
Severity
Category
Status
Source
Language