Skip to content

False positive for bare @class #74

@cvrebert

Description

@cvrebert

Example straight from the JSDoc docs:

// foo.js
/**
 * Creates a new Person.
 * @class
 */
function Person() {
}

var p = new Person();

Output from JSCS Grunt task:

Running "jscs:lib" (jscs) task
incomplete data in tag class at src/foo.js :
     1 |/**
     2 | * Creates a new Person.
     3 | * @class
-----------^
     4 | */
     5 |function Person() {

Relevant portion of .jscsrc:

  "plugins": [
    "jscs-jsdoc"
  ],
  "jsDoc": {
    "checkAnnotations": "jsdoc3",
    "checkParamNames": true,
    "checkRedundantParams": true,
    "requireParamTypes": true
  }

Relevant versions in use:

├─┬ [email protected]
│ ├─┬ [email protected]
├─┬ [email protected]
├─┬ [email protected]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions