fmt
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
[PATHS]
One or more paths to scan for code smells.
-a, --all
Compute smells for all files, not just changed
--no-error
Exit successfully regardless of linter errors
--sample
Sample results from a number of files for each linter
-j, --jobs
Maximum number of concurrent jobs
--filter
Only run the specified plugin
-v, --verbose
Print verbose output
--upstream
Upstream base ref to compare against
Examples
Auto-format changed files on your current branch
Auto-format all files with prettier
Auto-format files in a directory