rhiokim / grunt-sloc

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

Counter not initialized with unsupported extension in tolerant mode #13

Closed DomDerrien closed 8 years ago

DomDerrien commented 10 years ago

If I have a filter for '**.styl' files, your code fails because the counter for the fallback extension js has not been initialized.

You need to move the code initializing the counter one block down (to have it after the ext = 'js' piece of code).

Thanks, Dom

rhiokim commented 8 years ago

It was fixed with latest commit.