I am trying to import EsLint Issues to my sonarCloud analysis. I wrote a custom formatter and when i execute locally sonar-scanner, everything works. If i run it on bitbucket server during pull request analysis, i got the error
ERROR: Error during SonarScanner execution
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
at com.google.gson.Gson.fromJson(Gson.java:975)
at com.google.gson.Gson.fromJson(Gson.java:901)
at org.sonar.plugins.javascript.external.TslintReportSensor.importReport(TslintReportSensor.java:64)
My structure of the esLint Report is as defined in the documentation:
{issues: [{issues1}, {issue2},…]}
What can be the problem in this case, that i am getting this error?