Sha256: 5a459936fec281c2ba736108bd0f4e84be467da57cf32ccedc45db7577dffc85

Contents?: true

Size: 440 Bytes

Versions: 2

Compression:

Stored size: 440 Bytes

Contents

require 'preek/smell_collector'
require 'preek/smell_reporter'

module Guard
  class Preek
    class Runner
      def initialize(files)
        @files = Array(files)
      end

      def perform
        smelly_files = ::Preek::SmellCollector.new(@files, excludes).smelly_files
        ::Preek::SmellReporter.new(smelly_files).print_smells
      end

    private
      def excludes
        %w(IrresponsibleModule)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guard-preek-0.0.3 lib/guard/preek/runner.rb
guard-preek-0.0.2 lib/guard/preek/runner.rb