Skip to content

Normalize description in annotations #81

Description

@KittyGiraudel

@returns:

/**
 * @returns {type} Description of the return statement
 */

@param:

/**
 * @param {type} $name - description
 */

Incoming @requires:

/**
 * @requires {type} name - Description of the return statement
 */

First, the hyphen:

  • either we make it mandatory;
  • or we remove it;
  • or we make it optional.

Second, we make all those annotations behave the same by following the same rule. Curently, hyphen doesn't exist in @returns, is mandatory on @param and is about to be added as optional to @requires. Nope.

So, how do we do?

Edit: I'm tagging this for v1. It's not much, but we need to settle things down now.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions