Frequently Asked Questions (FAQ)
Why is Qlty not showing the specifics of formatting issues?
Unlike linters, which are designed to output violations of rules, auto-formatters are instead simply rewrite your code on disk to adhere to match their defined standard.
When Qlty analyzes your code, we run the auto-formatters in sandbox directory. This allows us to check if the auto-formatted result matches the current version of the file in you working directory, without overwriting it.
If a change is detected in auto-formatters result, Qlty will emit an issue with the following description:
Incorrect formatting, autoformat by running
qlty fmt
No additional information is available so we cannot reference line numbes or specific formatting issues.
The solution is to run the auto-formatter by running qlty fmt
locally and commit the result.
Additionally, by integrating auto-formatters into your workflow, you can eliminate formatting issues before they make it to your PRs.