walkingdexter/phpcs-diff
最新稳定版本:2.0.0
Composer 安装命令:
composer require walkingdexter/phpcs-diff
包简介
Removes non-diff violations from PHP_CodeSniffer reports.
README 文档
README
Removes non-diff violations from PHP_CodeSniffer reports. This is a lightweight solution with minimum requirements.
Installation
composer require --dev walkingdexter/phpcs-diff
Usage
Check current changes:
vendor/bin/phpcs-diff
This is a shortcut for:
vendor/bin/phpcs-diff --filter=GitModified
Check changes that have been staged for commit:
vendor/bin/phpcs-diff --filter=GitStaged
Check changes relative to the main branch:
vendor/bin/phpcs-diff --filter=GitCommitted --runtime-set git_diff_commit main
Check changes relative to a specific commit:
vendor/bin/phpcs-diff --filter=GitCommitted --runtime-set git_diff_commit 15a5e27
If the commit name is set in the configuration options:
vendor/bin/phpcs-diff --filter=GitCommitted
You can use any other options and arguments that the phpcs command accepts.
Limitations
Only reports that use prepared data are supported.
统计信息
- 总下载量: 5.53k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2023-12-14