Crate searchdeadcode

Crate searchdeadcode 

Source
Expand description

SearchDeadCode - Fast dead code detection for Android (Kotlin/Java)

This library provides static analysis capabilities to detect unused code in Android projects written in Kotlin and Java.

§Architecture

The analysis pipeline consists of:

  1. File Discovery - Find all .kt, .java, and .xml files
  2. Parsing - Parse source files using tree-sitter
  3. Graph Building - Build a reference graph of declarations
  4. Entry Point Detection - Identify Android entry points
  5. Reachability Analysis - Find unreachable code
  6. Reporting - Output results in various formats

Re-exports§

pub use analysis::Confidence;
pub use analysis::DeadCode;
pub use analysis::EntryPointDetector;
pub use analysis::HybridAnalyzer;
pub use analysis::ReachabilityAnalyzer;
pub use config::Config;
pub use coverage::parse_coverage_file;
pub use coverage::parse_coverage_files;
pub use coverage::CoverageData;
pub use coverage::CoverageParser;
pub use discovery::FileFinder;
pub use graph::Declaration;
pub use graph::DeclarationKind;
pub use graph::Graph;
pub use graph::Reference;
pub use proguard::ProguardUsage;
pub use proguard::UsageEntryKind;
pub use refactor::SafeDeleter;
pub use report::ReportFormat;
pub use report::Reporter;

Modules§

analysis
config
coverage
discovery
graph
parser
proguard
refactor
report