Sha256: 759d1de18da672ca7510becb9c07d02b1dc33df47b780d02396a83ebd4b6c25e
Contents?: true
Size: 971 Bytes
Versions: 12
Compression:
Stored size: 971 Bytes
Contents
# frozen_string_literal: true require 'rubycritic/core/analysed_modules_collection' require 'rubycritic/analysers/smells/flay' require 'rubycritic/analysers/smells/flog' require 'rubycritic/analysers/smells/reek' require 'rubycritic/analysers/complexity' require 'rubycritic/analysers/churn' require 'rubycritic/analysers/attributes' module RubyCritic class AnalysersRunner ANALYSERS = [ Analyser::FlaySmells, Analyser::FlogSmells, Analyser::ReekSmells, Analyser::Complexity, Analyser::Attributes, Analyser::Churn ].freeze def initialize(paths) @paths = paths end def run ANALYSERS.each do |analyser_class| analyser_instance = analyser_class.new(analysed_modules) puts "running #{analyser_instance}" analyser_instance.run end analysed_modules end def analysed_modules @analysed_modules ||= AnalysedModulesCollection.new(@paths) end end end
Version data entries
12 entries across 12 versions & 1 rubygems