Skip to main content

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.

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 using our custom built static analysis.

Arguments

Files to analyze
Compute smells for all files, not just changed
Don’t check for duplication
Include tests
Don’t show code snippets
Upstream base ref to compare against
Only show results

Examples

Analyze your current branch
qlty smells
Analyze your entire project for code smells
qlty smells --all
Analyze specific paths for code smells
qlty smells example-app/components/ui react-app/utils
Analyze a specific file for code smells
qlty smells example-app/components/ui/Dropdown.tsx
Skip duplication analysis
qlty smells --all --no-duplication
Analyze for code smells against a specific upstream branch
qlty smells --upstream origin/main

See Also