Maintain quality code
Learn how to use GitHub's code security and code quality features to maintain high-quality code in your repositories.
Enabling GitHub Code Quality
Turn on Code Quality to give your teams a consistent quality baseline: automatically catching, fixing, and reporting code quality issues in pull requests and on your default branch.
Disabling GitHub Code Quality
Stop Code Quality scans on a repository or across your organization, and know what happens to billing and your existing data before you do.
Rolling out GitHub Code Quality at scale
Bring Code Quality to every team with confidence by piloting on a small group first, then expanding once your quality thresholds are tuned.
Setting code quality thresholds for pull requests
Enforce your code quality standards automatically by blocking pull requests that fall below the thresholds you set, at the repository or organization level.
Setting up code coverage for your repository
Give your teams visibility into code coverage directly on pull requests, without paying for or maintaining a separate third-party coverage service.
Setting code coverage thresholds for pull requests
Protect your code coverage by automatically blocking pull requests that fall below the coverage levels your team requires.
Fixing code quality findings on a pull request
Keep quality issues out of your default branch by applying autofixes, delegating remediation work to Copilot, or dismissing irrelevant findings.
Resolving a block on your pull request
Identify and resolve a code quality or coverage threshold block on your pull request so you can merge your changes.
Viewing code coverage on pull requests
Review the coverage summary posted on your pull requests to identify files with low or declining code coverage.
Fixing code quality findings in your repository backlog
Generate autofixes for findings on the default branch of your repository, or dismiss findings that aren't relevant.
Fixing code quality findings in recently merged files
Apply autofixes or delegate remediation work to Copilot for quality issues detected by AI-powered analysis of recently merged code.
Interpreting the code quality results for your repository
Understand the maintainability and reliability of your codebase so you can prioritize where your teams focus remediation effort.
Exploring GitHub Code Quality results in your organization
Understand your organization's code health at a glance with the organization-level dashboard for Code Quality.
Viewing and managing GitHub Code Quality costs
Keep your Code Quality spend predictable by seeing exactly where charges come from and using the levers that bring them down.