Skip to content
Computes the CRAP metric for Ruby source code
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This project will contain a tool to compute the CRAP metric for Ruby code.

This current version looks for all files called ./spec/**/*_spec.rb,
runs them using Rspec, and reports the cyclomatic complexity for
all methods defined in all files tested.

Run it like this:

  ruby -Ilib /path/to/crap4r

You can’t perform that action at this time.