class RuboCop::Cop::Corrector

def initialize(source)

Parameters:
  • source (Parser::Source::Buffer, or anything) -- ource [Parser::Source::Buffer, or anything
def initialize(source)
  source = self.class.source_buffer(source)
  super(
    source,
    different_replacements: :raise,
    swallowed_insertions: :raise,
    crossing_deletions: :accept
  )
  # Don't print warnings to stderr if corrections conflict with each other
  diagnostics.consumer = NOOP_CONSUMER
end