Module: Moult::Formatters::GateJson

Defined in:
lib/moult/formatters/gate_json.rb

Overview

The gate's machine contract: a thin pass-through over GateReport#to_h, validated against schema/gate.schema.json. Renders from the same report as every other gate formatter so they cannot drift.

Class Method Summary collapse

Class Method Details

.render(report) ⇒ String

Parameters:

Returns:

  • (String)


15
16
17
# File 'lib/moult/formatters/gate_json.rb', line 15

def render(report)
  JSON.pretty_generate(report.to_h)
end