flosse / sloc

simple tool to count SLOC (source lines of code)
MIT License
944 stars 84 forks source link

Fixing a small bug in the alias handling code #46

Closed jtatum closed 9 years ago

jtatum commented 9 years ago

Adding an alias properly substituted the correct language parser, but there is still a file filter that used only the known list of extensions. Added any alias to the extension list.

jtatum commented 9 years ago

Incidentally, I started to add test cases, but there is too much module level code in cli.coffee. It would either need to be substantially rewritten, or there would need to be a harness for running bin/sloc inside a specfile.

flosse commented 9 years ago

@jtatum You're right, we should clean up an rewrite the cli with specs. So feel free to improve that dirty code ;-)

jtatum commented 9 years ago

That would be in a separate pull request for sure :)

flosse commented 9 years ago

ok