fmt

$qlty fmt [OPTIONS] [PATHS]

Auto-format files by rewriting them in place

By default, only changed files are auto-formatted. Use --all or specify paths to override this behavior.

Installs plugins and their required runtimes as needed before analyzing.

Must be run within a Git repository with Qlty initializd.

Arguments

One or more paths to scan for code smells.
Compute smells for all files, not just changed
Exit successfully regardless of linter errors

Sample results from a number of files for each linter

Maximum number of concurrent jobs
Only run the specified plugin
Print verbose output
Upstream base ref to compare against

Examples

Auto-format changed files on your current branch
$qlty fmt
Auto-format all files with prettier
$qlty fmt --all --filter=prettier
Auto-format files in a directory
$qlty fmt web/

See Also