flog version 1.1.0 has been released!
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 ...
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
- Added send (3).
- Capture and ignore SyntaxErrors from template/generator code.
- Report can now take an IO object.
- block_args now penalizes all non-benign forms of block_pass.
- Added usage to bin/flog. Moved -I processing to bin/flog.
- Added unpack.rb and update_scores.rb at base level (not installed)
- Added scoring for block_pass.
- 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