Sonar taking too much time to analyze a single file having 1 line as change set

  • which versions are you using (SonarQube 10.3 Developer)

  • How is SonarQube deployed: Docker

  • what are you trying to achieve: Sonar Qube taking almost 40 minutes to Analyze a change of 1 line in a single file in PR.

  • what have you tried so far to achieve this
    Before this I’m using SonarQube 10.0 Developer version but it was not taking that much time.

Kindly help me in this regards

Hi,

What is the language of the file in question? Also, can you share how long the line is (how many characters)? How large is the file?

Could you enable debug logging and share the analysis log?

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.

This guide will help you find them.

 
Thx,
Ann