Skip to content

ruby2_keywords breaks Style/DocumentationMethod cop #11586

@johnnyshields

Description

@johnnyshields

Style/DocumentationMethod cop will yield a false error for the following:

# This is the method doc.
ruby2_keywords def bazqux(name, *args, &block)
end

#=> Style/DocumentationMethod: Missing method documentation comment.

Other modifiers such as module_function work correctly:

# This is the method doc.
module_function def foobar(name, *args, &block)
end

#=> no Rubocop error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions