Sha256: ef5de2222b065894afe3d56a6ef6c6239e17e5bcbed6b7c39ec4e25653e12890
Contents?: true
Size: 598 Bytes
Versions: 6
Compression:
Stored size: 598 Bytes
Contents
require 'rubycritic/analysers/helpers/flog' require 'rubycritic/colorize' module Rubycritic module Analyser class Complexity include Colorize def initialize(analysed_modules) @flog = Flog.new @analysed_modules = analysed_modules end def run @analysed_modules.each do |analysed_module| @flog.reset @flog.flog(analysed_module.path) analysed_module.complexity = @flog.total_score.round print green '.' end puts '' end def to_s 'complexity' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems