- In your source code, with
qlty-ignorecomments that silence a rule on a line, an indented block, a region, or a whole file. See Silencing Issues for the syntax. - With
[[exclude]]rules in.qlty/qlty.toml, which stop plugins from running on matching files. - With
[[triage]]rules in.qlty/qlty.toml, which ignore issues that match plugins, rules, file patterns, and levels.
Adding [[exclude]] rules in qlty.toml
Qlty CLI also allows a simple way to exclude certain plugins from running on a set of files in your project configuration file (.qlty/qlty.toml). Each [[exclude]] block can specify conditions by plugins and file patterns. Qlty will avoid running the given plugins on files that match the given patterns or ignore any issues matching the plugins and file patterns.
Examples:
Adding [[triage]] rules in qlty.toml
Qlty CLI also allows a highly flexible way to suppress issues in your project configuration file (.qlty/qlty.toml). Each [[triage]] block can specify match conditions by plugins, rules, file globs, and levels. If an issue matches all the specified conditions, it will be ignored.
Examples:
Reviewing ignored issues
Issues ignored withqlty-ignore comments or with rules in .qlty/qlty.toml are dropped during analysis. They are not reported by Qlty CLI and are not uploaded to Qlty Cloud, so they cannot be viewed in the Qlty web application.