2.0.0 • Published 8 years ago

clog-analysis v2.0.0

Weekly downloads
24
License
-
Repository
github
Last release
8 years ago

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.

2.0.0

8 years ago

1.0.0

9 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago