Having the Groovy based warnings parser is a great way to support new tools that reports warnings. It might be useful when you write the report (because you write the static analyser or because you plug something into an existing tool).
For example I have create an extension for Asciidoctor, that collects the issues reported and put them into a file like this.
Thank to the Groovy based warnings parser, I can use a regex ((.)|(\d+)|(.)|(.*)) to parse the log that I have created.
Read more about this: https://jmini.github.io/asciidoctorj-file-logger/
The next step for me would be to contribute the parser to this project, so that it no longer rely on a config in Jenkins.
But before doing this, I would like to challenge the format that is used...
I could not find any discussion about this.
One idea that I have: a collection of JSON structures on each line:
This might be more robust, because the semantic is clearly defined (and not based on a regex config). I think this kind of files are now really common with tools like logstash (using JSON Layout in logger framework).
In comparison to xml based file, this kind of format works with tools that works with an append-only approach.
Thank in advance for your feedback.