Must-share information (formatted with Markdown):
-
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarScanner 5.0.1.3006
Java 17.0.8 Alpine (64-bit)
Linux 5.15.0-1030-gcp amd64 -
what are you trying to achieve]
After switching to pnpm it took 4h to run sonar-scanner
Before npm: it tooks around 10m
Eventually, I added the following exclusions for all the dist
, reports
, and other folders in sonar.exclusions
:
sonar.sources=packages
sonar.exclusions=**/bower_components/**, **/node_modules/**, **/vendor/**, **/dist/**, **/out/**, **/reports/**, **/.pnpm/**, **/.scannerwork/**
I monitored the process, and it’s clear that the indexing step is taking significantly longer. Some files take around 10-30 minutes to index.
2024-11-11T04:55:04.3002175Z 04:55:04.299 INFO: 4725 files indexed... (last one was packages/docs-website/scripts/examples/generate-docs-website-examples-index.ts)
...
2024-11-11T05:33:44.3413718Z 05:33:44.340 INFO: 4725 files indexed... (last one was packages/docs-website/scripts/examples/generate-docs-website-examples-index.ts)
06:51:45.098 INFO: EXECUTION SUCCESS
06:51:45.099 INFO: ------------------------------------------------------------------------
06:51:45.099 INFO: Total time: 3:58:58.809s
06:51:45.199 INFO: Final Memory: 350M/900M