Sha256: db5e8378be1a55433f86bbfe68792f40b800d0d706069dcb82e5f10dd0268c10

Contents?: true

Size: 343 Bytes

Versions: 2

Compression:

Stored size: 343 Bytes

Contents

module Rubycritic
  module QualityAdapter

    class Flog
      def initialize(paths)
        @flog = ::Rubycritic::Analyser::Flog.new
        @paths = paths
      end

      def complexity
        @paths.map do |path|
          @flog.reset
          @flog.flog(path)
          @flog.total_score.round
        end
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubycritic-0.0.12 lib/rubycritic/adapters/complexity/flog.rb
rubycritic-0.0.11 lib/rubycritic/quality_adapters/flog.rb