Sha256: dced070b67e805b75e9f396f81ce0f2779ba4e3e552e08ebc8aece3a31ae2ba3
Contents?: true
Size: 684 Bytes
Versions: 1
Compression:
Stored size: 684 Bytes
Contents
# frozen_string_literal: true module RubyCritic module Reporter REPORT_GENERATOR_CLASS_FORMATS = %i[json console lint].freeze def self.generate_report(analysed_modules) Config.formats.uniq.each do |format| report_generator_class(format).new(analysed_modules).generate_report end end def self.report_generator_class(config_format) if REPORT_GENERATOR_CLASS_FORMATS.include? config_format require "rubycritic/generators/#{config_format}_report" Generator.const_get("#{config_format.capitalize}Report") else require 'rubycritic/generators/html_report' Generator::HtmlReport end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-4.0.0 | lib/rubycritic/reporter.rb |