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

# smells

```bash lines theme={"system"}
qlty smells [OPTIONS] [PATHS]...
```

Find code smells like duplication and complexity

Detect issues like duplication (copy and pasted code), high complexity, deeply nested control flows, etc. for [supported languages](/languages) using our custom built static analysis.

## Arguments

<AccordionGroup>
  <Accordion title="[PATHS]...">Files to analyze</Accordion>
  <Accordion title="-a, --all">Compute smells for all files, not just changed</Accordion>
  <Accordion title="--no-duplication">Don't check for duplication</Accordion>
  <Accordion title="--include-tests">Include tests</Accordion>
  <Accordion title="--no-snippets">Don't show code snippets</Accordion>
  <Accordion title="--upstream <UPSTREAM>">Upstream base ref to compare against</Accordion>
  <Accordion title="--quiet">Only show results</Accordion>
</AccordionGroup>

## Examples

```bash Analyze your current branch lines theme={"system"}
qlty smells
```

```bash Analyze your entire project for code smells lines theme={"system"}
qlty smells --all
```

```bash Analyze specific paths for code smells lines theme={"system"}
qlty smells example-app/components/ui react-app/utils
```

```bash Analyze a specific file for code smells lines theme={"system"}
qlty smells example-app/components/ui/Dropdown.tsx
```

```bash Skip duplication analysis lines theme={"system"}
qlty smells --all --no-duplication
```

```bash Analyze for code smells against a specific upstream branch lines theme={"system"}
qlty smells --upstream origin/main
```

## See Also

* [Code Smells](/code-smells)
* [Duplication](/duplication)
* [Excluding Files](/excluding-files)
* [`qlty check`](/cli/commands/check)
* [Global Options](/cli/global-options)
