Sha256: 8893925154bc7c7440719f748a6b85e26d85c55f0e6967c5f1b8f202ec13bb9b
Contents?: true
Size: 445 Bytes
Versions: 3
Compression:
Stored size: 445 Bytes
Contents
require "rubycritic/analysers/adapters/flog" module Rubycritic module Analyser class Complexity def initialize(analysed_files) @flog = Flog.new @analysed_files = analysed_files end def run @analysed_files.each do |analysed_file| @flog.reset @flog.flog(analysed_file.path) analysed_file.complexity = @flog.total_score.round end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-1.0.2 | lib/rubycritic/analysers/complexity.rb |
rubycritic-1.0.1 | lib/rubycritic/analysers/complexity.rb |
rubycritic-1.0.0 | lib/rubycritic/analysers/complexity.rb |