Skip to content
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

JSON file is all comment line? #25

Closed
hhatto opened this issue Mar 28, 2016 · 1 comment
Closed

JSON file is all comment line? #25

hhatto opened this issue Mar 28, 2016 · 1 comment

Comments

@hhatto
Copy link
Contributor

hhatto commented Mar 28, 2016

for example:

$ cat hello.json
{
    "name": "tokei",
    "height": 150
}
$ tokei hello.json
-------------------------------------------------------------------------------
 Language            Files        Total       Blanks     Comments         Code
-------------------------------------------------------------------------------
 JSON                    1            4            0            4            0
-------------------------------------------------------------------------------
 Total                   1            4            0            4            0
-------------------------------------------------------------------------------
  • Is this behavior as per specification?
  • Markdown file same behavior, too.

By the way, cloc is under a behavior:

$ cloc --version
1.66
$ cloc hello.json
       1 text file.
       1 unique file.
       0 files ignored.

https://github.com/AlDanial/cloc v 1.66  T=0.01 s (135.7 files/s, 542.9 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
JSON                             1              0              0              4
-------------------------------------------------------------------------------

Sorry, my broken english.

@hhatto hhatto changed the title JSON file is all empty line? JSON file is all comment line? Mar 28, 2016
@XAMPPRocky
Copy link
Owner

This issue, and your other two pull requests are now part of tokei 1.5.1 which is now available from cargo install tokei

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

2 participants