| title | Enabling {% data variables.product.prodname_code_quality %} | ||
|---|---|---|---|
| shortTitle | Enable Code Quality | ||
| intro | Use {% data variables.product.prodname_code_quality_short %} to automatically catch, fix, and report on code quality issues in pull requests and on your default branch. | ||
| versions |
|
||
| product | {% data reusables.gated-features.code-quality-availability %} | ||
| permissions | {% data reusables.permissions.code-quality-repo-enable %} | ||
| contentType | how-tos | ||
| redirect_from |
|
||
| category |
|
{% data reusables.code-quality.code-quality-preview-note %}
- {% data variables.product.prodname_actions %} must be enabled because {% data variables.product.prodname_code_quality_short %} uses actions to run each {% data variables.product.prodname_codeql %} analysis.
- To get the full benefit of the feature, your repository should include one of the languages supported for quality analysis by {% data variables.product.prodname_codeql %}. See Supported languages.
{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %}
-
In the sidebar, under "Security", click {% data variables.code-quality.code_quality_ui_settings %} to display the "{% data variables.code-quality.code_quality_ui %}" page.
-
Click Enable code quality.
[!NOTE] If Enable code quality is missing from this view, your enterprise owner has disabled the use of {% data variables.product.prodname_code_quality_short %} for your organization. See AUTOTITLE.
-
Review the information on the Code quality page:
-
Click Save changes to save your configuration for {% data variables.product.prodname_code_quality_short %}.
Tip
If your organization has configured caching of private registries, these will be available for code quality analysis to use to resolve dependencies. See AUTOTITLE.