Skip to main content

About GitHub Code Quality

Use GitHub Code Quality to flag code quality issues in pull requests and repository scans, apply Copilot-powered autofixes, and enforce standards with rulesets.

Кто может использовать эту функцию?

GitHub Code Quality доступно для репозиториев, принадлежащих организации, на GitHub Team или GitHub Enterprise Cloud

Примечание.

GitHub Code Quality в настоящее время находится в public preview и может быть изменен. Во время public preview, Code Quality не будут оплачиваться, хотя Code Quality сканирование займет GitHub Actions минут.

Overview

GitHub Code Quality helps you ensure your codebase is reliable, maintainable, and efficient. Whether you're building a new feature, reducing technical debt, or reporting on repository health, Code Quality provides actionable insights and automated fixes so you can improve and maintain the code health of your repository efficiently.

Key features and benefits

With Code Quality, you can:

  • Identify code quality risks and opportunities in pull requests and through repository scans.
  • Review clear explanations for findings and apply one-click Copilot-powered autofixes.
  • Use repository dashboards to track reliability and maintainability scores, identify areas needing attention, and prioritize remediation.
  • Set up rulesets for pull requests to enforce code quality standards and block changes that do not meet your criteria.
  • Easily assign remediation work to Агент кодирования Copilot, if you have a Copilot license.

Availability and usage costs

GitHub Code Quality is available for organization-owned repositories on GitHub Team and GitHub Enterprise Cloud plans.

GitHub Code Quality won't be billed during public preview. However, Code Quality scans will consume GitHub Actions minutes. See GitHub Code Quality выставление счетов.

Примечание.

Supported languages

Code Quality performs rule-based analysis of the following languages using CodeQL:

  • C#
  • Go
  • Ява
  • JavaScript
  • Питон
  • Руби
  • Машинописный текст

Code Quality also performs AI-powered analysis with results displayed separately on the "Выводы ИИ" repository dashboard. Unlike the rule-based CodeQL analysis that scans the entire codebase and pull requests, this AI-powered analysis only examines files recently pushed to the default branch and may identify issues in languages beyond those listed above. For more information, see Ответственное использование GitHub Code Quality.

Understanding where Code Quality findings appear after enablement

Once you enable Code Quality for a repository, you'll see CodeQL scans for:

  • Every new pull request opened against the default branch
  • All existing pull requests to the default branch when they are updated, triggering a new run of CI tests
  • The whole codebase on the default branch at the time and date shown on the "Качество кода" settings page

In addition, you'll see an AI-powered analysis of all recent pushes to the default branch.

Pull request results

When CodeQL finds rule-based problems on pull requests, you'll see comments from the github-code-quality[бот]. Where possible, each comment will include a Автофикс второго пилота suggestion on how to fix the problem. See Исправление результатов проверки качества кода перед слиянием запроса на вытягивание.

Default branch results

Code Quality findings on the default branch are reported on "Качество кода" pages on the Security tab for the repository:

Scan information

Each CodeQL analysis will use GitHub Actions minutes and can be seen on the Actions tab of the repository as a run of the dynamic "Качество кода" workflow.

Next steps