Class: Skunk::Generator::Json::Simple

Inherits:
RubyCritic::Generator::Json::Simple
  • Object
show all
Defined in:
lib/skunk/generators/json/simple.rb

Overview

Generates a JSON report for the analysed modules.

Instance Method Summary collapse

Instance Method Details

#dataObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/skunk/generators/json/simple.rb', line 10

def data
  {
    analysed_modules_count: analysed_modules_count,
    skunk_score_average: skunk_score_average,
    skunk_score_total: skunk_score_total,
    worst_pathname: worst&.pathname,
    worst_score: worst&.skunk_score,
    files: files
  }
end