Creates text with diagnostics for the passed violations; each diagnostics message starts with a new line.