# Setting up project analysis

If you don’t use [Automatic analysis](/sonarqube-cloud/analyzing-source-code/automatic-analysis.md), you must configure a CI-based analysis with a SonarScanner before setting up a project analysis. If needed, see the [Overview of integrated CIs](/sonarqube-cloud/analyzing-source-code/ci-based-analysis/overview-of-integrated-cis.md) page to learn about CI integrations.

{% content-ref url="/pages/avY1WCeyku2eqR3HZyBS" %}
[Analysis scope](/sonarqube-cloud/managing-your-projects/project-analysis/setting-analysis-scope.md)
{% endcontent-ref %}

{% content-ref url="/pages/lS7XlPkTlgfeKE5wvlS3" %}
[Long-lived branch pattern](/sonarqube-cloud/managing-your-projects/project-analysis/long-lived-branch-pattern.md)
{% endcontent-ref %}

{% content-ref url="/pages/3FBgTEesmIXh0OH7cBNp" %}
[Quality gate](/sonarqube-cloud/managing-your-projects/project-analysis/changing-quality-gate.md)
{% endcontent-ref %}

{% content-ref url="/pages/BPVx9IHX96aZ0cML2o3P" %}
[Quality profile](/sonarqube-cloud/managing-your-projects/project-analysis/quality-profile-association.md)
{% endcontent-ref %}

{% content-ref url="/pages/yr5n59H9UAnKCizqnnQk" %}
[New code definition](/sonarqube-cloud/managing-your-projects/project-analysis/configuring-new-code-calculation.md)
{% endcontent-ref %}

## Related pages

* Set and adjust your [Analysis scope](/sonarqube-cloud/managing-your-projects/project-analysis/setting-analysis-scope.md). To get started with understanding your analysis scope, see the section's [Introduction](/sonarqube-cloud/managing-your-projects/project-analysis/setting-analysis-scope/introduction.md) page.
* Enrich you analysis results with test coverage, external analyzers, and branch analysis. See the [Broken mention](broken://pages/GZBwYq0c8pUhvbGW10wJ) page to Enriching your analysis.
* Disable or enable [Automatic analysis](/sonarqube-cloud/analyzing-source-code/automatic-analysis.md).
* Define a [Long-lived branch pattern](/sonarqube-cloud/managing-your-projects/project-analysis/long-lived-branch-pattern.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-cloud/managing-your-projects/project-analysis.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
