Skip to content

CLI lint warning bug #1092

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jaydenseric opened this issue Jun 12, 2018 · 2 comments
Open

CLI lint warning bug #1092

jaydenseric opened this issue Jun 12, 2018 · 2 comments

Comments

@jaydenseric
Copy link
Contributor

jaydenseric commented Jun 12, 2018

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
Copy link
Contributor Author

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
Copy link
Contributor Author

jaydenseric commented Jun 12, 2018

Looks like a similar issue to #795.

@jaydenseric jaydenseric changed the title CLI lint lint warning bug CLI lint warning bug Jun 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant