File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,16 @@ PHPStanのCustom Rule開発環境サンプル
44## ディレクトリ構成
55```
66.
7- |-- phpstan.neon # config(実行したいCustom Ruleをここで指定する)
8- |-- src
9- | `-- SomeClass.php # 解析対象のコード
107|-- Rules
11- | `-- MyRule.php # カスタムルール
12- `-- Tests
13- `-- MyRuleTest
14- |-- data
15- | `-- my-rule.php # テストデータ
16- `-- MyRuleTest.php # テストコード
8+ | `-- MyRule.php # カスタムルール
9+ |-- Tests
10+ | `-- MyRuleTest
11+ | |-- data
12+ | | `-- my-rule.php # テストデータ
13+ | `-- MyRuleTest.php # テストコード
14+ |-- src
15+ | `-- SomeClass.php # 解析対象のコード
16+ `-- phpstan.neon # config(実行したいCustom Ruleをここで指定する)
1717```
1818
1919## 参考
@@ -31,7 +31,7 @@ make run
3131make clean
3232```
3333
34- ## Rector実行
34+ ## 解析実行
3535```
3636XDEBUG_MODE=off ./vendor/bin/phpstan analyze -l 0 src
3737XDEBUG_MODE=off ./vendor/bin/phpstan analyse -l 0 --debug src
@@ -44,7 +44,7 @@ XDEBUG_MODE=off ./vendor/bin/phpunit Tests
4444```
4545
4646### デバッグ
47- rector.phpを修正して並行処理を無効化してから ` --xdebug ` オプションを付けて実行する。
47+ ` --xdebug ` オプションを付けて実行する。並行処理を無効化するため ` --debug ` オプションも付ける 。
4848```
4949./vendor/bin/phpstan analyze --debug --xdebug -l 0 src
5050```
You can’t perform that action at this time.
0 commit comments