gabrie-allaigre / sonar-gitlab-plugin

Add to each commit GitLab in a global commentary on the new anomalies added by this commit and add comment lines of modified files
GNU Lesser General Public License v3.0
713 stars 207 forks source link

Fix JSON serialization #202

Closed baaym closed 5 years ago

baaym commented 5 years ago

The JSON serialization could still break in certain cases, as not all escape sequences were accounted for.

I updated the Reporter class to use the battle-tested StringEscapeUtils to escape the generated JSON string. We're running the plugin internally on our SonarQube instance and so far this has solved all serialization issues.

gabrie-allaigre commented 5 years ago

Thanks