dead_code_analyzer 0.1.0
dead_code_analyzer: ^0.1.0 copied to clipboard
A tool to analyze and identify dead/unused code in Dart and Flutter projects.
0.1.0 #
Changelog #
All notable changes to the Dead Code Analyzer project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[0.1.0] - 2025-05-21 #
Added #
- Initial release of Dead Code Analyzer.
- Core features:
- Detection of unused classes, functions, and variables in Dart and Flutter projects.
- Identification of unreachable code segments.
- Usage frequency tracking for code elements.
- Analysis of internal and external references.
- Comprehensive report generation with recommendations in text format.
- Interactive progress indicators during analysis.
- Support for custom exclusion patterns via
--excludeoption.
- Command-line interface with options:
-p, --project-path: Specify project directory (default: current directory).-o, --output-dir: Set report output directory (default: Desktop).-v, --verbose: Show detailed output with usage locations.-e, --exclude: Comma-separated patterns to exclude (e.g., "test,example").--no-progress: Disable progress indicators.--only-unused: Show only unused elements in the report.-h, --help: Display help message.
- Installation support via
pub.devor source code. - CI/CD integration example for GitHub Actions.
- Documentation for usage, best practices, limitations, and contributing guidelines.
- Licensed under the BSD 3-Clause License.
Changed #
- N/A (Initial release).
Fixed #
- N/A (Initial release).