Skip to main content

build_dead_parameter_report

Function build_dead_parameter_report 

Source
pub fn build_dead_parameter_report(
    root: &Path,
    explicit_files: Option<&[PathBuf]>,
    walk_config: &WalkConfig,
) -> DiagnosticsReport
Expand description

Build a DiagnosticsReport for the dead-parameter rule.

Walks all source files under root, analyzes each with the scope engine, and emits a warning for every function parameter that is never referenced in the file.