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

All 0s in generated JSON file #23

Open
timdwilson opened this issue Apr 27, 2016 · 1 comment
Open

All 0s in generated JSON file #23

timdwilson opened this issue Apr 27, 2016 · 1 comment

Comments

@timdwilson
Copy link

When I run the following command:

                jformDistJson: {
                    options: {
                        reportType: 'json',
                        reportPath: '../doc/sloc/jform-dist-sloc-<%= pkg.version %>.json',
                    },
                    files: {
                        '../js': ['jForm/*.js']
                    }
                }

It produces this output:

Running "sloc:jformDistJson" (sloc) task
Create at: ../doc/sloc/jform-dist-sloc-1.7.1.json

Done, without errors.

I get all 0s in the JSON output:

{
  "total": 0,
  "source": 0,
  "comment": 0,
  "single": 0,
  "mixed": 0,
  "empty": 0,
  "block": 0,
  "file": 0
}

I am using:
Windows 2008 R2
grunt 0.4.5
grunt-sloc 0.7.1
sloc 0.1.10
node.js 4.4.0

This same relative path works in all of my other grunt tasks. In fact, I've tried seemingly every combination of absolute and relative paths and I get the same result. Can you please help?

@braver
Copy link

braver commented Jun 16, 2016

Same here, nothing but zeroes.

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