Module: Rubycritic::Turbulence

Defined in:
lib/rubycritic/turbulence.rb

Class Method Summary collapse

Class Method Details

.data(analysed_files) ⇒ Object



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

def self.data(analysed_files)
  analysed_files.map do |analysed_file|
    {
      :name => analysed_file.pathname,
      :x => analysed_file.churn,
      :y => analysed_file.complexity
    }
  end.to_json
end