Sha256: 964793db2c6d2b9cc515b9bb9e344705eef81b9d2603a0f7b36c5fcfe57c0892
Contents?: true
Size: 598 Bytes
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-2.9.3 | lib/rubycritic/analysers/complexity.rb |