Z
Zev Blut
Saikuro is a Ruby cyclomatic complexity analyzer.
http://saikuro.rubyforge.org
When given Ruby source code Saikuro will generate a report listing the
cyclomatic complexity of each method found. In addition, Saikuro
counts the number of lines per method and can generate a listing of
the number of tokens on each line of code.
Usage:
Saikuro is a command line program.
Running "saikuro -h" will output a usage statement describing all
the various arguments you can pass it.
"saikuro -c -p tests/samples.rb"
The above command is a simple example that generates a cyclomatic
complexity report on the samples.rb file, using the default filter,
warning and error settings. The report is saved in the current
directory.
Changes:
=3Dv0.2
* Adding setup.rb installer
* Fixing an infinite loop that the lexer goes into if a file is
missing a newline at the end.
Note:
Ruby 1.8.5 has a bug in ri_options that will prevent Saikuro from
running. If you are using 1.8.5 please apply this patch :
http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/lib/rdoc/ri/ri_options.=
rb.diff?r1=3D1.2.2.13;r2=3D1.2.2.14
Any feedback is appreciated.
Thanks,
Zev
http://saikuro.rubyforge.org
When given Ruby source code Saikuro will generate a report listing the
cyclomatic complexity of each method found. In addition, Saikuro
counts the number of lines per method and can generate a listing of
the number of tokens on each line of code.
Usage:
Saikuro is a command line program.
Running "saikuro -h" will output a usage statement describing all
the various arguments you can pass it.
"saikuro -c -p tests/samples.rb"
The above command is a simple example that generates a cyclomatic
complexity report on the samples.rb file, using the default filter,
warning and error settings. The report is saved in the current
directory.
Changes:
=3Dv0.2
* Adding setup.rb installer
* Fixing an infinite loop that the lexer goes into if a file is
missing a newline at the end.
Note:
Ruby 1.8.5 has a bug in ri_options that will prevent Saikuro from
running. If you are using 1.8.5 please apply this patch :
http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/lib/rdoc/ri/ri_options.=
rb.diff?r1=3D1.2.2.13;r2=3D1.2.2.14
Any feedback is appreciated.
Thanks,
Zev