clog-analysis
Simple CoffeeScript static analysis for code quality metrics
Last updated 4 years ago by mdiebolt .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install clog-analysis 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 2.0.0                                ...           latest (4 years ago)

8 Versions

  • 2.0.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.0.11                                ...           5 years ago
  • 0.0.10                                ...           6 years ago
  • 0.0.9                                ...           6 years ago
  • 0.0.8                                ...           6 years ago
  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 3
This Month 11
Last Day 2
Last Week 8
Last Month 2
Dependencies (5)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |