Sonar-scanner doesn't fail in case of error

Hi @StephenS and @Pankaj,

Indeed our overall strategy is to not fail the whole analysis if one step if failing. And we don’t have any way to fail the analysis if some step is failing. You might consider some solutions on your side (checking error logs for example).

About the actual problem of failing TS analysis: will you be able to provide me with sources of the project having such problem (it’s possible to do it privately)? We know that for some users TS analysis sometimes fails, but so far we don’t have any understanding why.

As a troubleshooting you could try to have only typescript in your node_modules (this dependency is required for analysis) so that time is not spent on building dependencies, but no guarantee that would help.

Regards,
Elena

1 Like