Module: RubyCritic::Turbulence

Defined in:
lib/rubycritic/generators/html/turbulence.rb

Class Method Summary collapse

Class Method Details

.data(analysed_modules) ⇒ Object


5
6
7
8
9
10
11
12
13
14
# File 'lib/rubycritic/generators/html/turbulence.rb', line 5

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