Skip to content

Improve adding missing @param #31

@bogdan

Description

@bogdan

Params order

YARD/MismatchName cop adds a missing @param at the bottom of the doc.
It is better if it could add it to the place where other @param is defined.

it would be cool to have an DirectivesOrder cop that puts all directives to the specified order all the time including ordering the @param as they appear in method signature.

Default param type

It would be also good to better guess the type of the added parameter from its default value:

# @param [Boolean] html
# instead of
# @param [Object] html
def columns(html: false)
end

Thanks for all the hard work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions