pub fn hide_cascade_findings(
results: &mut AnalysisResults,
config: &ResolvedConfig,
)Expand description
Hide the export and member findings of unused files.
Deleting an unused file removes every unused export, unused type, unused class member and unused enum member in it, so these findings add no information to the report. The pass runs inside the rule pass, so every surface that reports findings hides the same set.
A finding is hidden only when the report lists its file in
unused_files, or when an inline fallow-ignore-file unused-file comment
suppressed that file. A scope, an issue-type selection without unused
files, an ignoreFindings pattern or an off rule that removes the file
from the report therefore hides nothing in that file. The issue-type
filters clear the suppressed files too, so they must run before this pass.
The baseline runs after this pass, so a baseline entry for the unused file
does not make its findings visible again. showCascade keeps every
finding.