A YAML stream may carry several documents with different root types. YAMLCheck reports the count and each root kind.

--- starts another document

An optional ... closes one explicitly; formatting emits stable document separation.

One invalid document invalidates the stream

YAMLCheck still lists positioned issues across the parsed stream so they can be fixed together.