alleyinteractive / alleyinteractive/create-wordpress-plugin
Skip `RemoveUselessVarTagRector` Rector rule to satisfy PHPCS
- 主要言語
- PHP
- スター
- 35
- フォーク
- 2
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 3
説明
### Description of the bug
PHPCS and Rector are in disagreement about variable comments in classes.
In Rector, the rule is `RemoveUselessVarTagRector`
In PHPCS, the rule is `Squiz.Commenting.VariableComment.MissingVar`
We should skip `Rector\DeadCode\Rector\Property\RemoveUselessVarTagRector::class` in `rector` to satisfy PHPCS and ensure maximum tooling compatibility.
### Steps To Reproduce
1. Create a new plugin with `create-wordpress-plugin`
2. Create a class with a variable, e.g.
```
/**
* REST_API instance.
*
* @var REST_API
*/
private REST_API $api;
```
3. Notice that the presence of `@var REST_API` breaks Rector, and removing `@var REST_API` breaks PHPCS
### Additional Information
_No response_
コントリビューションガイド
評価
この issue はまだ評価されていません。