# Overview

Once the SonarQube platform has been installed, you’re ready to install a scanner and begin creating projects. To do that, you must install and configure the scanner that is most appropriate for your needs. Do you build with:

* Gradle - [sonarscanner-for-gradle](https://docs.sonarsource.com/sonarqube-server/10.1/analyzing-source-code/scanners/sonarscanner-for-gradle "mention")
* .NET - [sonarscanner-for-dotnet](https://docs.sonarsource.com/sonarqube-server/10.1/analyzing-source-code/scanners/sonarscanner-for-dotnet "mention")
* Maven - [sonarscanner-for-maven](https://docs.sonarsource.com/sonarqube-server/10.1/analyzing-source-code/scanners/sonarscanner-for-maven "mention")
* Jenkins - [jenkins-extension-sonarqube](https://docs.sonarsource.com/sonarqube-server/10.1/analyzing-source-code/scanners/jenkins-extension-sonarqube "mention")
* Azure DevOps - [sonarqube-extension-for-azure-devops](https://docs.sonarsource.com/sonarqube-server/10.1/analyzing-source-code/scanners/sonarqube-extension-for-azure-devops "mention")
* Ant - [sonarscanner-for-ant](https://docs.sonarsource.com/sonarqube-server/10.1/analyzing-source-code/scanners/sonarscanner-for-ant "mention")
* Anything else (CLI) - [sonarscanner](https://docs.sonarsource.com/sonarqube-server/10.1/analyzing-source-code/scanners/sonarscanner "mention")

{% hint style="info" %}
SonarQube integrations are supported for popular DevOps Platforms: GitHub Enterprise and GitHub.com, BitBucket Server, Azure Devops Server and Azure DevOps Services.
{% endhint %}

{% hint style="warning" %}
We do not recommend running an antivirus scanner on the machine where a SonarQube analysis runs, it could result in unpredictable behavior.
{% endhint %}

A project is created in SonarQube automatically on its first analysis. However, if you need to set some configuration on your project before its first analysis, you have the option of provisioning it via administration options or the **+** menu item, which is visible to users with project creation rights.

### What does analysis produce? <a href="#analysis-product" id="analysis-product"></a>

SonarQube can analyze up to 29 different languages depending on your edition. The outcome of this analysis will be quality measures and issues (instances where coding rules were broken). However, what gets analyzed will vary depending on the language:

* On all languages, "blame" data will automatically be imported from supported SCM providers. [scm-integration](https://docs.sonarsource.com/sonarqube-server/10.1/analyzing-source-code/scm-integration "mention"). Other providers require additional plugins.
* On all languages, a static analysis of source code is performed (Java files, COBOL programs, etc.)
* For certain languages, the static analysis should be done on compiled code ( .class files in Java, .dll files in C#, etc.)

### Will all files be analyzed? <a href="#files-analyzed" id="files-analyzed"></a>

By default, only files that are recognized by your edition of SonarQube are loaded into the project during analysis. For example, if you’re using SonarQube Community Edition, which includes analysis of Java and JavaScript, but not C++, all `.java` and `.js` files would be loaded, but `.cpp` files would be ignored.

### What about branches and pull requests? <a href="#branches-and-pull-requests" id="branches-and-pull-requests"></a>

*Developer Edition* adds the ability to analyze your project’s [branch-analysis](https://docs.sonarsource.com/sonarqube-server/10.1/analyzing-source-code/branches/branch-analysis "mention") and [pull-request-analysis](https://docs.sonarsource.com/sonarqube-server/10.1/analyzing-source-code/pull-request-analysis "mention") as well as the ability to automatically report your pull request analysis to your DevOps platform interface.

### What happens during analysis? <a href="#analysis" id="analysis"></a>

During analysis, data is requested from the server, the files provided to the analysis are analyzed, and the resulting data is sent back to the server at the end in the form of a report, which is then analyzed asynchronously server-side.

Analysis reports are queued and processed sequentially, so it is quite possible that for a brief period after your analysis log shows completion, the updated values are not visible in your SonarQube project. However, you will be able to tell what’s going on because an icon will be added on the project homepage to the right of the project name. Mouse over it for more detail (and links if you’re logged in with the proper permissions).

![Screenshot of SonarQube showing an analysis is in progress.](https://931701944-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FguPtldYmKsIetAs13CP3%2Fuploads%2Fgit-blob-ff220be77e3dd3edea2dc3f6d2b0db555ac20d1c%2F43d9d1f3f24fa482d256ad9c87345b5427bb72be.jpg?alt=media)

Screenshot of SonarQube showing an analysis is in progress.

The icon goes away once processing is complete, but if analysis report processing fails for some reason, the icon changes:

![Screenshot of SonarQube showing the last analysis has failed.](https://931701944-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FguPtldYmKsIetAs13CP3%2Fuploads%2Fgit-blob-73bfd52e9ff1c4d9b274e2e8201746f7f3b4c39f%2Fed65287d290de6c4709785184fdb8d2246b9687d.jpg?alt=media)

Screenshot of SonarQube showing the last analysis has failed.

### FAQ <a href="#analysis-faq" id="analysis-faq"></a>

**Q.** Analysis errors out with `java.lang.OutOfMemoryError: GC overhead limit exceeded`. What do I do?\
**A.** This means your project is too large or too intricate for the scanner to analyze with the default memory allocation. To fix this you’ll want to allocate a larger heap (using `-Xmx[numeric value here]`) to the process running the analysis. Some CI engines may give you an input to specify the necessary values, for instance if you’re using a Maven Build Step in a Jenkins job to run analysis. Otherwise, use Java Options to set a higher value. Note that details of setting Java Options are omitted here because they vary depending on the environment.

**Q.** Analysis errors out with `PKIX path building failed`. What do I do?\
**A.** This error tells you that your SonarQube server is configured with HTTPS and a custom SSL certificate. However, the certificate is not correctly configured in the scanner machine’s JVM. This configuration is outside of SonarQube scope. The server certificate is unknown and could not be validated with the provided truststore. You need to add the SonarQube server certificate to the Java truststore. See [Oracle’s documentation](https://docs.oracle.com/cd/E19830-01/819-4712/ablqw/index.html) for more information.
