flosse / flosse/sloc

Capitalized R detection

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

Description

Seems like a simple bug:

```
$ sloc ./*.R
C:\Users\Birke\AppData\Roaming\npm\node_modules\sloc\lib\sloc.js:195
throw new TypeError("File extension '" + lang + "' is not supported");
^

TypeError: File extension 'R' is not supported
at getCommentExpressions (C:\Users\Birke\AppData\Roaming\npm\node_modules\sloc\lib\sloc.js:195:17)
at slocModule (C:\Users\Birke\AppData\Roaming\npm\node_modules\sloc\lib\sloc.js:376:31)
at C:\Users\Birke\AppData\Roaming\npm\node_modules\sloc\lib\cli.js:84:19
at tryToString (fs.js:456:3)
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:443:12)

$ sloc ./*.R -a R=r

---------- Result ------------
...
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.