Skip to content

Idea YARD/Warning #29

@ksss

Description

@ksss

Simply notice YRAD warning on rubocop.

# @return Hash{Symbol => String}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [warn]: Invalid tag format for @return
def invalid_format(arg)
end

memo

def on_def(node)
  # ...
  io = StringIO.new
  log.reopen(io)
  parse(docstring)
  if !io.string.empty?
    add_offense(preceding_lines.last, message: io.string)
  end
end

ref: #26

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