I’m using SonarQube Community Edition 25.3 and encountering an issue when scanning a large directory containing many SQL files. The SonarScanner process gets stuck after analyzing around 400 files.
To work around this, I’m considering splitting the files into smaller batches (e.g., 200 files per batch), scanning each batch in a separate branch, and later merging the results. Would this approach work? Are there alternative solutions to handle many file scans efficiently?
How to get unstuck depends on why you’re getting stuck, which we can’t diagnose without analysis logs.
However, I suppose you’re using a 3rd-party plugin to analyze your SQL, because Community Build doesn’t do anything with SQL files as far as I know. If so, how to get unstuck may require advice / assistance from your plugin maintainers. But give us your debug logs and let’s take a look.
The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.