Module: Moult::Formatters::DeadCodeJson
- Defined in:
- lib/moult/formatters/dead_code_json.rb
Overview
Emits the typed dead-code JSON contract (schema/deadcode.schema.json). Renders straight from DeadCodeReport#to_h so the serialized shape cannot drift from the result model.
Class Method Summary collapse
-
.render(report) ⇒ String
Pretty-printed JSON.
Class Method Details
.render(report) ⇒ String
Returns pretty-printed JSON.
15 16 17 |
# File 'lib/moult/formatters/dead_code_json.rb', line 15 def render(report) JSON.pretty_generate(report.to_h) end |