But this results in an error, because cs2pr requires a valid XML input:
typoscript-lint --fail-on-warnings --format=xml --output=- | cs2pr
Complete without warnings
Error: Expecting xml stream starting with a xml opening tag.
Error: Process completed with exit code 2.
When using Checkstyle output format and the linting was successful, no output will be generated, thus the Checkstyle XML will be invalid
This will be an issue, when piping the output to another command (e.g.
cs2pr
)In my pipeline I run smth like this:
But this results in an error, because
cs2pr
requires a valid XML input: