check
Check for static analysis issues
By default, only changed files are analyzed. Use --all
or specify paths to override this behavior.
Installs plugins and their required runtimes as needed before analyzing.
By default, issues are cached locally to speed up subsequent runs.
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
--fix
Apply all auto-fix suggestions
--no-formatters
Disable formatter checks
--no-progress
Disable progress bar
--no-fail
Exit successfully regardless of what issues are found
--no-error
Exit successfully regardless of linter errors
--sample
Sample results from a number of files for each linter
--level
Minimum level of issues to show (high, medium, low)
-j, --jobs
Maximum number of concurrent jobs
--filter
Filter by plugin or check
-v, --verbose
Print verbose output
--no-cache
Disable caching issues
--print-errors
Print errors to stderr
--fail-level <FAIL_LEVEL>
Minimium level of issues to fail on
--upstream
Upstream base ref to compare against
Examples
Run linters on changed files on your current branch
Run linters on all files
Run only ESLint on all files
Run linters on the web/ folder