agencenous/todo
最新稳定版本:1.1.1
Composer 安装命令:
composer create-project agencenous/todo
包简介
CLI utility to check TODOs comments in projects
README 文档
README
CLI utility to check TODOs comments in projects
Installation
composer require --dev agencenous/todo
Usage
vendor/bin/todo
By default, the command will search for TODO: comments in the current directory and its subdirectories in files with format: php, js, css, scss, jsx.
Some directories are excluded by default: vendor, node_modules, cache, .git.
You can override these settings by passing arguments to the command:
vendor/bin/todo path/to/directory --formats=php,js,css,scss,jsx --exclude=vendor,node_modules,cache,.git
For a more convenient use, you can also create a configuration file .todo.json at the root of your project:
{
"formats": ["php", "js", "css", "scss", "jsx"],
"exclude": ["vendor", "node_modules", "cache", ".git"]
}
Example
vendor/bin/todo
output (colorized):
./src/Controller/ApiController.php
- Line 422: "Apply pagination in query instead of post-processing"
./src/Front/components/DateView/index.js
- Line 7: "add format parameter to format the date"
./src/Helper/Apps/GoogleHelper.php
- Line 327: "Implete update event"
- Line 374: "Implete delete event"
Found 4 TODOs
If TODOs are found, the command will exit with status code 1, otherwise it will exit with status code 0.
统计信息
- 总下载量: 2.59k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2024-09-16