> ## 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

This reference documents Qlty CLI v0.668.0.

```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](https://docs.qlty.sh/languages.md) using our custom built static analysis.

## Arguments

> [accordion] \[PATHS]...
>
> Files to analyze

> [accordion] -a, --all
>
> Compute smells for all files, not just changed

> [accordion] --no-duplication
>
> Don't check for duplication

> [accordion] --include-tests
>
> Include tests

> [accordion] --no-snippets
>
> Don't show code snippets

> [accordion] --upstream \<UPSTREAM>
>
> Upstream base ref to compare against

> [accordion] --quiet
>
> Only show results

> [accordion] --sarif
>
> SARIF output

## 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](https://docs.qlty.sh/code-smells.md)
* [Duplication](https://docs.qlty.sh/duplication.md)
* [Excluding Files](https://docs.qlty.sh/cli/excluding-files.md)
* [`qlty check`](https://docs.qlty.sh/cli/commands/check)
* [Global Options](https://docs.qlty.sh/cli/global-options.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.