Use is_lint_allowed()
for computationally heavy lints
#133
Labels
A-Linter
Related to the linter and custom lints
C-Code-Quality
An improvement of readability or quality
Milestone
By default, all lints are run, even if they are
#[allow(...)]
d.#[allow(...)]
attributes are usually just taken in account when filtering out these diagnostics. This unfortunately can lead to slow lints being run, even if they're never used.is_lint_allowed()
solves this by letting lint passes check if a specific lint is allowed before it runs the heavy computation. While not applicable in all situations, it is useful for speeding up the linter by only running what we need.The text was updated successfully, but these errors were encountered: