class SimpleCov::ExitCodes::MinimumOverallCoverageCheck

def report_violation(violation)

def report_violation(violation)
  criterion = violation.fetch(:criterion)
  actual = violation.fetch(:actual)
  ExitCodes.print_error format(
    "%<criterion>s coverage (%<actual>s) is below the expected minimum coverage (%<expected>.2f%%).",
    criterion: criterion.capitalize,
    actual: SimpleCov::Color.colorize_percent(actual),
    expected: violation.fetch(:expected)
  )
  report_worst_files(criterion)
end