Sha256: 0d463f807ca72e776d3ae8a60d170d1d865b4281ebf510f7fb320d4c488ffb3b
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
require "rubycritic/active_support/methods" require "rubycritic/adapters/smell/flay" require "rubycritic/adapters/smell/flog" require "rubycritic/adapters/smell/reek" module Rubycritic class AnalysersRunner include ActiveSupport ANALYSERS = ["Flay", "Flog", "Reek"] def initialize(paths) @paths = paths end def run aggregate_smells(smell_adapters) end private def smell_adapters ANALYSERS.map do |analyser_name| constantize("Rubycritic::SmellAdapter::#{analyser_name}").new(@paths) end end def aggregate_smells(smell_adapters) smell_adapters.map(&:smells).flatten.sort end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-0.0.12 | lib/rubycritic/analysers_runner.rb |