Forrest logo
back to the sonar-scanner tool

sonar-scanner:tldr:58b62

sonar-scanner: Print debugging information.
$ sonar-scanner -X
try on your machine

The command "sonar-scanner -X" is used to run the SonarScanner for analyzing code and generating reports in a SonarQube or SonarCloud server. The "-X" option enables debug mode, providing more detailed information about the scanning process.

Here is a breakdown of the command:

  • "sonar-scanner": This invokes the SonarScanner executable or script, allowing you to analyze code and send the results to a SonarQube or SonarCloud server.
  • "-X": This option activates debug mode, which generates verbose output during the scanning process. Debug mode provides additional information that can be useful in troubleshooting and understanding how the scanning process works.

By running this command, you will initiate the SonarScanner in debug mode, which can be beneficial when you want to gather detailed information about the scanning process, such as the communication between the scanner and the server, the analysis steps being performed, or any potential issues encountered during the scan.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the sonar-scanner tool