MCPcopy Index your code
hub / github.com/SonarSource/sonar-scanner-cli

github.com/SonarSource/sonar-scanner-cli @8.1.0.6389

Chat with this repo
repository ↗ · DeepWiki ↗ · release 8.1.0.6389 ↗ · + Follow
248 symbols 899 edges 29 files 24 documented · 10%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Scanner CLI for SonarQube (Server, Cloud)

The official scanner used to run code analysis on SonarQube (Server, Cloud). Project configuration is read from file sonar-project.properties or passed on the command line.

Sonar's Clean Code solution helps developers deliver high-quality, efficient code standards that benefit the entire team or organization.

Build Quality Gate Status

Documentation

https://redirect.sonarsource.com/doc/install-configure-scanner.html

Have Questions or Feedback?

For support questions ("How do I?", "I got this error, why?", ...), please head to the SonarSource forum. There are chances that a question similar to yours has already been answered.

Be aware that this forum is a community, so the standard pleasantries ("Hi", "Thanks", ...) are expected. And if you don't get an answer to your thread, you should sit on your hands for at least three days before bumping it. Operators are not standing by. :-)

Contributing

If you would like to see a new feature, please create a new thread in the forum "Suggest new features".

Please be aware that we are not actively looking for feature contributions. The truth is that it's extremely difficult for someone outside SonarSource to comply with our roadmap and expectations. Therefore, we typically only accept minor cosmetic changes and typo fixes.

With that in mind, if you would like to submit a code contribution, please create a pull request for this repository. Please explain your motives to contribute this change: what problem you are trying to fix, what improvement you are trying to make.

Make sure that you follow our code style and all tests are passing (Travis build is executed for each pull request).

License

Copyright SonarSource Sàrl.

Licensed under the GNU Lesser General Public License, Version 3.0

Core symbols most depended-on inside this repo

getProperty
called by 83
src/main/java/org/sonarsource/scanner/cli/SystemInfo.java
properties
called by 32
src/main/java/org/sonarsource/scanner/cli/Cli.java
parse
called by 17
src/main/java/org/sonarsource/scanner/cli/Cli.java
exit
called by 16
src/main/java/org/sonarsource/scanner/cli/Exit.java
analyze
called by 16
src/main/java/org/sonarsource/scanner/cli/Main.java
create
called by 15
src/main/java/org/sonarsource/scanner/cli/ScannerEngineBootstrapperFactory.java
isDebugEnabled
called by 13
src/main/java/org/sonarsource/scanner/cli/Cli.java
resolve
called by 12
src/main/java/org/sonarsource/scanner/cli/PropertyResolver.java

Shape

Method 217
Class 29
Enum 1
Function 1

Languages

Java100%
TypeScript1%

Modules by API surface

src/test/java/org/sonarsource/scanner/cli/MainTest.java22 symbols
src/test/java/org/sonarsource/scanner/cli/ConfTest.java22 symbols
it/src/test/java/com/sonarsource/scanner/it/ProxyServer.java21 symbols
src/test/java/org/sonarsource/scanner/cli/CliTest.java19 symbols
src/main/java/org/sonarsource/scanner/cli/Conf.java19 symbols
it/src/test/java/com/sonarsource/scanner/it/ScannerTest.java19 symbols
src/main/java/org/sonarsource/scanner/cli/Cli.java14 symbols
it/src/test/java/com/sonarsource/scanner/it/ProxyTest.java12 symbols
src/main/java/org/sonarsource/scanner/cli/SystemInfo.java11 symbols
src/main/java/org/sonarsource/scanner/cli/Main.java11 symbols
it/src/test/java/com/sonarsource/scanner/it/MultimoduleTest.java10 symbols
src/test/java/org/sonarsource/scanner/cli/SystemInfoTest.java9 symbols

Datastores touched

(mysql)Database · 1 repos

For agents

$ claude mcp add sonar-scanner-cli \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact