Sha256: d104c43d61757f3fcbbd342ba4e8120d014f19d400adbda6a81891d6adb42176
Contents?: true
Size: 854 Bytes
Versions: 2
Compression:
Stored size: 854 Bytes
Contents
require "rubycritic/configuration" require "rubycritic/source_locator" require "rubycritic/analysers_runner" require "rubycritic/source_control_systems/source_control_system" require "rubycritic/revision_comparator" require "rubycritic/turbulence" require "rubycritic/report_generators/reporter" module Rubycritic class Rubycritic def initialize @source_control_system = SourceControlSystem.create end def critique(paths) source = SourceLocator.new(paths) smells = AnalysersRunner.new(source.paths).run if @source_control_system.has_revision? smells = RevisionComparator.new(smells, @source_control_system).smells turbulence_data = Turbulence.new(source.paths, @source_control_system).data end Reporter.new(source.pathnames, smells, turbulence_data).generate_report end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubycritic-0.0.12 | lib/rubycritic.rb |
rubycritic-0.0.11 | lib/rubycritic.rb |