Sha256: eefb2cb3e83a9a7f782588da8e2ebe6e3cd41d7d86a222940e7a152f0e034e6c

Contents?: true

Size: 308 Bytes

Versions: 1

Compression:

Stored size: 308 Bytes

Contents

require 'json'

module RubyCritic
  module Turbulence
    def self.data(analysed_modules)
      analysed_modules.map do |analysed_module|
        {
          name: analysed_module.name,
          x: analysed_module.churn,
          y: analysed_module.complexity
        }
      end.to_json
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubycritic-2.9.3 lib/rubycritic/generators/html/turbulence.rb