Thanks for the tip about verbose mode. I can see which files it’s getting stuck on.
It’s hanging for ten minutes on the 395th file out of 446, a short file, 46 lines, .js, but it’s the entry point for an express
server, so it’s importing a routes.js
, which is then importing a bunch of other files that were previously analyzed.
There isn’t much else to see in the logs. I’ve scrubbed them the best I can and I can share them privately if you’re interested.
I tried updating the Sonar Scanner CLI from 5.0.1 to 7.1.0 just in case. I also ran from the command line to get past the 10 minute no-output timeout: it takes 1h27m for that one .js file and 8m16s for another .ts file. The rest are fast.
The whole analysis completes in 1m20s total with -Dsonar.jasmin.internal.disabled=true
.