Forrest logo
tool overview
On this page you find all important commands for the CLI tool sonar-scanner. If the command you are looking for is missing please ask our AI.

sonar-scanner

Sonar-scanner is a command-line tool used for running static code analysis and checking code quality. It is a part of the SonarQube ecosystem, which is a popular tool for continuous code quality inspection. The tool is used to analyze source code and provide detailed reports on code smells, bugs, vulnerabilities, code duplications, and other quality issues. Sonar-scanner supports multiple programming languages like Java, C/C++, C#, JavaScript, Python, Swift, Kotlin, and more. It can be integrated into existing development workflows and build systems like Jenkins, Maven, Gradle, and others. The tool analyzes code based on a set of predefined rules and can also be customized to include project-specific rules. Sonar-scanner supports incremental analysis, which ensures that only modified code is scanned, saving time and resources. The reports generated by sonar-scanner provide developers with valuable insights into the quality of their code, helping them identify and fix issues early in the development process. Sonar-scanner is open-source and has a large community of users, which contributes to its ongoing development and improvement. Using sonar-scanner can greatly improve code quality, maintainability, and reduce technical debt in software projects.

List of commands for sonar-scanner:

  • sonar-scanner:tldr:2f727 sonar-scanner: Scan a project using configuration file other than `sonar-project.properties`.
    $ sonar-scanner -D${project-settings=myproject-properties}
    try on your machine
    explain this command
  • sonar-scanner:tldr:45efc sonar-scanner: Print help information.
    $ sonar-scanner -h
    try on your machine
    explain this command
  • sonar-scanner:tldr:58b62 sonar-scanner: Print debugging information.
    $ sonar-scanner -X
    try on your machine
    explain this command
  • sonar-scanner:tldr:91cf0 sonar-scanner: Scan a project with configuration file in your project's root directory named `sonar-project.properties`.
    $ sonar-scanner
    try on your machine
    explain this command
tool overview