class Isolator::Ignorer

Handle ignoring isolator errors using a yml file

Constants

TODO_PATH

Public Class Methods

prepare(path: TODO_PATH, regex_string: "^.*( click to toggle source
# File lib/isolator/ignorer.rb, line 9
def prepare(path: TODO_PATH, regex_string: "^.*(#ignores#):.*$")
  return unless File.exist?(path)

  todos = YAML.load_file(path)

  Isolator.adapters.each do |id, adapter|
    ignored_paths = todos.fetch(id, [])
    AdapterIgnore.new(adapter: adapter, ignored_paths: ignored_paths, regex_string: regex_string).prepare
  end
end