Skip to content
/ clog Public

Static analysis for CoffeeScript files. Similar to flog.

License

Notifications You must be signed in to change notification settings

mdiebolt/clog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Static analysis for CoffeeScript files. Similar to flog.

Resources

License

Stars

Watchers

Forks

Packages

No packages published