smells

$qlty smells [OPTIONS] [PATHS]

Identify code smells like duplication and structure issues

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

One or more paths to scan for code smells.
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