Sha256: cf72ad64b945dfbee17895383aea9bc49a3c6589fb7a15dcb2b4c04a8ed0412e

Contents?: true

Size: 477 Bytes

Versions: 9

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

require_relative './configuration_validator'
require_relative '../errors/config_file_error'

module Reek
  module Configuration
    #
    # Array extension for excluded paths.
    #
    module ExcludedPaths
      include ConfigurationValidator

      # @param paths [String]
      # @return [undefined]
      def add(paths)
        paths.flat_map { |path| Dir[path] }.
          each { |path| self << Pathname(path) }
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
reek-6.1.4 lib/reek/configuration/excluded_paths.rb
reek-6.1.3 lib/reek/configuration/excluded_paths.rb
reek-6.1.2 lib/reek/configuration/excluded_paths.rb
reek-6.1.1 lib/reek/configuration/excluded_paths.rb
reek-6.1.0 lib/reek/configuration/excluded_paths.rb
reek-6.0.6 lib/reek/configuration/excluded_paths.rb
reek-6.0.5 lib/reek/configuration/excluded_paths.rb
reek-6.0.4 lib/reek/configuration/excluded_paths.rb
reek-6.0.3 lib/reek/configuration/excluded_paths.rb