CoffeeScript static analysis for code quality metrics. Inspired by flog for Ruby. Runs as a CLI, generating a report describing churn and complexity of each file or directory passed to it.
npm install -g clog-analysis
clog path/to/file1.coffee path/to/file2.coffee my/dir
Generates a report of churn and complexity for
file2.coffee, and all
.litcoffee files inside
my/dir or any of its subdirectories.
git checkout -b my-new-feature)
git commit -am 'Add some feature')
git push origin my-new-feature)
Stub out fs read file to speed up CLI specs
Method length metric can be incorrect if you have comments at the same level as another function.
fnOne = -> doSomething() # This is what function two does fnTwo = -> doSomethingElse()
In the above example the comment above
fnTwo will be added to the method length calculation for