clog-analysis

2.0.0 • Public • Published

Clog

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.

Installation

npm install -g clog-analysis

Usage

clog path/to/file1.coffee path/to/file2.coffee my/dir

Generates a report of churn and complexity for file1.coffee, file2.coffee, and all .coffee, .coffee.md, and .litcoffee files inside my/dir or any of its subdirectories.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

TODO

Stub out fs read file to speed up CLI specs

Known issues

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 fnOne.

Readme

Keywords

none

Package Sidebar

Install

npm i clog-analysis

Weekly Downloads

7

Version

2.0.0

License

none

Last publish

Collaborators

  • mdiebolt