mrkindy/deadscanner 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mrkindy/deadscanner

最新稳定版本:V1.0.1

Composer 安装命令:

composer require mrkindy/deadscanner

包简介

Laravel console command to list dead methods and classes from Laravel projects.

README 文档

README

Efficiently identify and prune dead methods and Controllers to keep your codebase clean and maintainable.

Features

  • Pinpoints Unused Methods and Controllers: Detects methods and Controllers that aren't actively utilized within your project.
  • Customizable Scanning: Target specific paths for analysis and exclude namespaces as needed.
  • Flexible Output Formats: View results concisely in text format or obtain a detailed dump for in-depth analysis.
  • Easy Integration: Seamlessly integrates into your Laravel workflow with straightforward installation and usage.

Installation

Add DeadScanner to your project using Composer:

composer require mrkindy/deadscanner

Usage

Run the following commands to scan your project for dead code:

  • Find dead Controllers:

    php artisan mrkindy:deadcontroller
  • Find dead methods:

    php artisan mrkindy:deadmethods

Arguments:

  • paths: Optional list of specific paths to scan.

Options:

  • --dump-output: Outputs a detailed dump of dead code findings for comprehensive analysis.
  • --text-output: Presents results in a concise text format for quick overview.

Contributing

We appreciate contributions! Please refer to the CONTRIBUTING.md file for details on how to get involved.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 46
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2024-04-02