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:
feature: code-quality
product: '{% data reusables.gated-features.code-quality-availability %}'
permissions: '{% data reusables.permissions.code-quality-repo-enable %}'
topics:
- Code Quality
contentType: how-tos
{% data reusables.code-quality.code-quality-preview-note %}
Prerequisites
- {% 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.
Enabling {% data variables.product.prodname_code_quality_short %} for a repository
{% 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.
If Enable code quality is missing from this view, your enterprise owner has disabled the use of {% data variables.product.prodname_code_security %} and {% 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 %}.
If your organization has configured caching of private registries, these will be available for code quality analysis to use to resolve dependencies. See AUTOTITLE.