rhiokim / grunt-sloc

Source line of codes plugin for Grunt.js
MIT License
23 stars 12 forks source link

Multiple Tasks Combine Results Instead of Staying Separate #3

Closed theGeekPirate closed 11 years ago

theGeekPirate commented 11 years ago

I am using the following, and the output combines the first result (server) into the second report (client), instead of separating the two results.

sloc: {
    server: {
        files: {
            'server': ['**/*.js'],
            './': ['Gruntfile.js', 'server.js']
        }
    },
    client: {
        files: {
            'client': ['index.html']
        }
    }
},

OUTPUT:

Running "sloc:server" (sloc) task

physical lines : 221 lines of source code : 152 total comment : 47 singleline : 47 multiline : 0 empty : 22

number of files read : 2


Running "sloc:client" (sloc) task

physical lines : 379 lines of source code : 295 total comment : 47 singleline : 47 multiline : 0 empty : 37

number of files read : 3