Hello, I’m scanning a Node.js / Typescript project that runs the SonarScanner properly, but there are 30-40 files (out of about 1000 files) that get this error:
ERROR: Failed to analyze file [<masked>/get-post-processing-step-for-id.test.js] from TypeScript: Maximum call stack size exceeded
Occurred while linting <masked>/get-post-processing-step-for-id.test.js:17
ERROR: Failed to analyze file [<masked>/delete-encrypted-configuration.js] from TypeScript: Maximum call stack size exceeded
Occurred while linting <masked>/delete-encrypted-configuration.js:26
ERROR: Failed to analyze file [<masked>/jobs.js] from TypeScript: Maximum call stack size exceeded
Occurred while linting <masked>/jobs.js:34
ERROR: Failed to analyze file [<masked>/data_source.js] from TypeScript: Maximum call stack size exceeded
Occurred while linting <masked>/data_source.js:39
ERROR: Failed to analyze file [<masked>/service-desk.test.js] from TypeScript: Maximum call stack size exceeded
For those files I can’t see in SonarQube the number of lines, I can see coverage and duplication is always 0% (not sure if it’s true). Some other similar files in the same folders are scanned properly. The lines referenced don’t have any evident pattern but most of them relate to functions that read from the database (but this is backend code so that type of functions are everywhere)
Some additional info:
*We host our own SonarQube server
*Analyzing on SonarQube server 8.6.0
*Version of TypeScript used during analysis: 3.8.3
Any ideas?
Thanks!