documentation icon indicating copy to clipboard operation
documentation copied to clipboard

CLI lint warning bug

Open jaydenseric opened this issue 7 years ago • 2 comments

In src/test.js:

const foo = {
  bar: () => {}
}

/** A baz. */
class Baz {}

Running documentation lint src results in this warning:

5:1  warning  could not determine @name for hierarchy

The warning goes away if you add a semicolon:

  const foo = {
    bar: () => {}
- }
+ };

  /** A baz. */
  class Baz {}

The same thing for class properties:

  /** An A. */
  class A {
    b = {
      c: ''
-   }
+   };

    /** Does d. */
    d() { }
  }
  • What version of documentation.js are you using?: v8.0.0
  • How are you running documentation.js (on the CLI, Node.js API, Grunt, other?): CLI

jaydenseric avatar Jun 12 '18 07:06 jaydenseric

This bug can also create these warnings:

warning  @memberof reference to A not found
screen shot 2018-06-12 at 5 53 14 pm

jaydenseric avatar Jun 12 '18 07:06 jaydenseric

Looks like a similar issue to https://github.com/documentationjs/documentation/issues/795.

jaydenseric avatar Jun 12 '18 08:06 jaydenseric