> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revolte.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Code Quality

> Configure automated linting and static analysis for your repository.

**Code Quality** ensures that every commit adheres to your team's coding standards. Revolte integrates with industry-standard linters to provide immediate feedback on maintainability and potential bugs.

<div style={{ display: "flex", justifyContent: "center" }}>
  <img src="https://mintcdn.com/poddle-54594c3d/q0Rk3K5lGk3vHIWm/image-v2/pipeline/code-quality.png?fit=max&auto=format&n=q0Rk3K5lGk3vHIWm&q=85&s=d7acf818bc02622315ea0bff670cf3b4" width="400" data-path="image-v2/pipeline/code-quality.png" />
</div>

## How to configure

Customize your code quality standards through the Revolte dashboard.

<Steps>
  <Step title="Access Repo Preferences">
    Navigate to **YAML Configuration** > **Repo Preferences** and locate the **Pipelines** section.
  </Step>

  <Step title="Open Code Quality Settings">
    Click on the **Code Quality** component to view detailed configuration options.
  </Step>

  <Step title="Define Rules">
    Use the YAML editor to specify linting rules and severity levels (error, warn, off).
  </Step>

  <Step title="Commit Changes">
    Save your configuration to the repository. See [Syncing Changes](/yaml/syncing) for a detailed walkthrough.
  </Step>
</Steps>

## Configuration example

Enable and customize code quality checks in your `revolte.yaml`:

```yaml revolte.yaml theme={"dark"}
revolte:
  version: "1.0"
  project: Demo-Project
  appName: "demo-app"

  config:
    pipeline:
      codeQuality:
        codeStyle:
          rules:
            javascript/arrayCallbackReturn: warn
            javascript/constructorSuper: warn
            javascript/forDirection: warn
            javascript/getterReturn: warn
            javascript/noAsyncPromiseExecutor: error
```

## Supported features

* **Static Analysis**: Detects anti-patterns and potential runtime errors.
* **Linting**: Enforces consistent formatting and style rules.
* **Complexity Metrics**: Identifies overly complex functions that may need refactoring.

## Quick links

* [Test Suite](/yaml/repo-preferences/pipelines/test-suite)
* [Pipelines Overview](/yaml/repo-preferences/pipelines/overview)
* [Prebuild Workflow](/yaml/repo-preferences/prebuild-workflow)
