Skip to content

jsdoc doesn't fail-fast when conf.json does not exist. #425

@gitgrimbo

Description

@gitgrimbo

Using the following

jsdoc -r -c x.x js

when x.x does not exist, will cause jsdoc to use its internal conf.json.EXAMPLE config file (jsdoc.js#L174).

Can this situation fail-fast instead, or output a warning? Or is this behaviour by design?

Invalid files fail as expected:

d:\dev\git_repos\jsdoc3-examples>echo a > x.x

d:\dev\git_repos\jsdoc3-examples>jsdoc -r -c x.x js
js: "C:/Users/grimbo/AppData/Roaming/npm/node_modules/jsdoc/jsdoc.js", line 316: exception from uncaught JavaScript throw: Error: Cannot parse the config file x.x: SyntaxError: Unexpected token: a

Thanks.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions