flog version 1.1.0 has been released!

| | Comments (0)

Flog reports the most tortured code in an easy to read pain report. The higher the score, the more pain the code is in.

% ./bin/flog bin/flog
Total score = 128.7

Flog#report: (21)
     4: puts
     2: sort_by
...

Changes:

  • 3 major enhancements:
    • Added assignments and branches and a lot of other stuff. rad.
    • Added process_iter section for DSL style blocks (rake tasks etc).
    • Made Flog usable as a library.
  • 12 minor enhancements:
    • Added -a flag to turn off threshold culling for other tools.
    • Added -s for summarizing the score.
    • Added -v feedback to know what file you're flogging.
    • Added branching penalty so tons of nested conditionals get beat down.
    • Added send (3).
    • Capture and ignore SyntaxErrors from template/generator code. Stupid DHH.
    • Report can now take an IO object.
    • blockargs now penalizes all non-benign forms of blockpass.
    • Added usage to bin/flog. Moved -I processing to bin/flog.
    • Added unpack.rb and updatescores.rb at base level (not installed)
    • Added scoring for blockpass.
    • Converted totals to use distance formula on ABC's.
  • 3 bug fixes:

    • Ran flog on every latest gem available. Found a bunch of problems.
    • Use a stack for both class/module and method accounting.
    • block_args weren't processing the arg
  • http://ruby.sadi.st/

  • http://rubyforge.org/projects/seattlerb

Leave a comment