flosse / flosse/sloc

sloc aborts (with 0 exit code) if it encounters symbolic link to a nonexistent path

Open
#93 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
CoffeeScript
Stars
972
Forks
80
PR merge metrics
No merged PRs in 30d

Description

```
$ sloc whatever-directory
Error: Error: ENOENT: no such file or directory, stat '/whatever-directory/whatever-file',Error: ENOENT: no such file or directory, stat '/whatever-directory/whatever-file'
$ echo $?
0

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue by running `sloc whatever-directory` against a symbolic link to a nonexistent path and check the reported error and exit code. Trace how the CLI handles the failed `stat` operation; done means the command no longer aborts unexpectedly and returns an appropriate result for the broken link.

Written by the indexing model from the issue text.

Assessment

Tech stack
coffeescript, node.js
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.