Skip to content

Smarty type testing for params and returns #26

Open
@qfox

Description

@qfox

For example:

/**
 * Shouldn't report
 * @param {String} a
 * @returns {String}
 */
function (a) {
  if (a.indexOf('x')) {
    return '?';
  }
  return a + 'b';
}

/**
 * But this should report
 * @param {Number} b
 * @returns {String}
 */
function (b) {
  return b.quantity / 2;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions