Skip to content

Provide consistency checks for parameter documentation and links #179

@rweickelt

Description

@rweickelt

When documenting functions, it can often happen that the documentation does not match the function signature:

/**
 * Function documentation.
 *
 * :param p1: Documentation of p1
 * :param int p22: Documenation of p2 - oops
 * :return: Return value documentation
 * :See also: :c:func:`i_dont_exist`
 */
int foo(int p1, int p2);

It would be nice if Hawkmoth would (on demand)

  • ensure consistency and throw a warning in case of a mismatch.
  • warn on undocumented parameters and return value
  • warn or throw an error when linking to a non-existing symbol (probably not Hawkmoth's business)

I know that some people prefer not to use these directives at all. Thus it would be nice to have that configurable.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions