Run Code Analysis

sonarqube

(Anwar Hussain) #1

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarCloud
  • what are you trying to achieve
    Publish results of scanned code
  • what have you tried so far to achieve this

We have tried run a CI build, which runs successfully until code analysis and fails to publish the results for few components. Upon reading the logs we see that it says “This analysis will make your organization ‘XXXXXXXXXXXXXXXX’ to reach the maximum allowed lines limit. Please contact the administrator of the organization to resolve this issue.”

More details are below

Run code analysis has been succeeded with multiple errors and we are not able to see the published results on sonar cloud. We have also observed that the published results tasks on the VSTS has failed after run code analysis.

Now the question is how do I know the code quality without sonar cloud publishing the results. Is there any criteria for publish results tasks to succeed (like number of errors generated in run code analysis should be less than a threshold etc…)


(Duarte Meneses) #2

Hi,

If there are errors during the analysis, in most cases the results won’t be published.
Regarding the error message:

“This analysis will make your organization ‘XXXXXXXXXXXXXXXX’ to reach the maximum allowed lines limit. Please contact the administrator of the organization to resolve this issue.”

It looks like you are on a paid plan and you reached the maximum number of source code lines that is included in the plan.


(Anwar Hussain) #3

Thanks Duarte! yes as this was paid plan deleting the scanned source code lines, fixed this for us. Thank you again.