Sha256: e97d842001d94ad1fc6a6af3746acbcb49e5108510d761f65f0540e5aa4bd0f7

Contents?: true

Size: 373 Bytes

Versions: 6

Compression:

Stored size: 373 Bytes

Contents

require 'rubycritic/generators/json/simple'

module Rubycritic
  module Generator
    class JsonReport
      def initialize(analysed_modules)
        @analysed_modules = analysed_modules
      end

      def generate_report
        print generator.render
      end

      private

      def generator
        Json::Simple.new(@analysed_modules)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rubycritic-2.9.2 lib/rubycritic/generators/json_report.rb
rubycritic-2.9.1 lib/rubycritic/generators/json_report.rb
rubycritic-2.9.0 lib/rubycritic/generators/json_report.rb
rubycritic-2.8.0 lib/rubycritic/generators/json_report.rb
rubycritic-2.7.1 lib/rubycritic/generators/json_report.rb
rubycritic-2.7.0 lib/rubycritic/generators/json_report.rb