Ignorelint::JsonFormatter
Inherits Ignorelint::Formatter < Reference < Object
Instance methods
finish(io : IO) : Nil
Write the complete JSON document to the output stream.
Builds the entire structure at once so the "total" field (sum of all
issue counts across all files) is accurate.
format_file(result : FileResult, io : IO) : Nil
Collect the file result for later emission in finish.
Does NOT write to io immediately — the complete JSON structure is
built in finish so the "total" count is accurate.
start(io : IO) : Nil
No-op — the JSON header is written in finish.