class SyntaxTree::CLI::Check

expected.
An action of the CLI that ensures that the filepath is formatted as

def failure

def failure
  warn("The listed files did not match the expected format.")
end

def run(item)

def run(item)
  source = item.source
  formatted =
    item.handler.format(
      source,
      options.print_width,
      options: options.formatter_options
    )
  raise UnformattedError if source != formatted
rescue StandardError
  warn("[#{Color.yellow("warn")}] #{item.filepath}")
  raise
end

def success

def success
  puts("All files matched expected format.")
end