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:
- File Discovery - Find all .kt, .java, and .xml files
- Parsing - Parse source files using tree-sitter
- Graph Building - Build a reference graph of declarations
- Entry Point Detection - Identify Android entry points
- Reachability Analysis - Find unreachable code
- 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;