Skip to content

Conversation

@pneff
Copy link

@pneff pneff commented Nov 27, 2020

Q A
Bug fix? yes
New feature? no
Breaking change? no
Deprecations? no
Tests added? yes
Fixed issues #1623
License Apache-2.0

This fixes the bug #1623 and other similar issues.

When scanning source code, the previous behaviour was to trip up on any issue that statSync may raise. This can particularly happen for circular and broken symlinks.

The fix addresses this by creating a mock version of fs that does not even return such broken files from readdirSync.

The alternative fix would be to raise this on the klaw-sync package, but that might be a breaking change for the packages that depend on it.

This fixes the bug jsdoc#1623 and other similar issues.

When scanning source code, the previous behaviour was to trip up on any
issue that `statSync` may raise. This can particularly happen for
circular and broken symlinks.

The fix addresses this by creating a mock version of `fs` that does not
even return such broken files from `readdirSync`.

The alternative fix would be to raise this on the `klaw-sync` package,
but that might be a breaking change for the packages that depend on it.
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

Successfully merging this pull request may close these issues.

1 participant